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

Handling of zoom factor changes #53

Open
HeikoMueller opened this issue Jul 15, 2020 · 0 comments
Open

Handling of zoom factor changes #53

HeikoMueller opened this issue Jul 15, 2020 · 0 comments

Comments

@HeikoMueller
Copy link

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant