Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Handling of zoom factor changes #53

@HeikoMueller

Description

@HeikoMueller

I implemented this script and it works well. I call the reflow function on resize events, also this works without problems. Unfortunately, if the zoom factor / font size is adjusted in the browser, the line height and the positioning parameters (top / marginTop) are not accurate, so I end up with visually broken lines and unaligned lines across columns.

This happens both with standardiseLineHeight: false and true.

With standardiseLineHeight: true however, I not only end up with broken lines, but now, every time I decrease or increase the zoom factor, the space between paragraphs gets wider and wider. So after just a handful of such events I see spaces of multiple line-heights between paragraphs.

Is this script supposed to handle zoom factor change events properly, so if the user is increasing the font size manually, does the .reflow() function reflect this in the line height and positioning calculation? What is the recommended combination of config params and css values to get this tackled ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions