Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset document zoom-factor when resizing only the containing HTML element with 'page-width' #1991

Open
ischerf-buhl opened this issue Dec 6, 2023 · 1 comment
Assignees
Labels
20 scheduled for version 20 nuisance a bug that only shows in the logs; or: a bug with an obvious work-around every user finds quickly Version 18 Scheduled for version 18

Comments

@ischerf-buhl
Copy link

Is your feature request related to a problem? Please describe.
I load a document and zoom is set to 'page-width'.
When I resize the browser window, this setting is kept, the 'zoom' will be adjusted.
However, when I change through user interaction how wide the component can be, the zoom factor will be kept and thus the document is no longer displayed as 'page-width'.

Describe the solution you'd like
I would like to be able to tell the component that the behaviour on window resize and component resize should be the same.

Describe alternatives you've considered
My alternative would be to manually set up a listener (maybe ResizeObserver can help me?) and then manually reset the zoom.

Additional context
I don't know if there is something like this already and I just missed it. Or if this will end in a performance hell.

@stephanrauh stephanrauh self-assigned this Dec 6, 2023
@stephanrauh stephanrauh added nuisance a bug that only shows in the logs; or: a bug with an obvious work-around every user finds quickly Version 18 Scheduled for version 18 Version 19 labels Dec 6, 2023
@stephanrauh
Copy link
Owner

This makes sense. In 2023, it's probably OK to use a ResizeObserver. When I ran into a similar topic a couple of years ago, there are still too many browsers out there that didn't support ResizeObserver.

@stephanrauh stephanrauh added 20 scheduled for version 20 and removed Version 19 labels Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
20 scheduled for version 20 nuisance a bug that only shows in the logs; or: a bug with an obvious work-around every user finds quickly Version 18 Scheduled for version 18
Projects
None yet
Development

No branches or pull requests

2 participants