Skip to content

zoom in or out not take parent width #155

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

Open
IsAmitprajapati opened this issue Oct 10, 2022 · 3 comments
Open

zoom in or out not take parent width #155

IsAmitprajapati opened this issue Oct 10, 2022 · 3 comments
Labels

Comments

@IsAmitprajapati
Copy link

when i was zoom in does not take the parent width and height
Screenshot 2022-10-10 105107

@palerdot
Copy link
Owner

palerdot commented Oct 10, 2022

This is outside the scope of what the library can do. When you zoom in/out with browser tools, the browser infers the text size and mostly increases/decreases the text size to match the zoom. It is possible that it can apply the same logic to some elements like images. In any case, the width/height has not changed during zooming in/out. Just how it is shown is changed by the browser. For the library to rerender, the width has to change which is not the case when zooming is happening.

@palerdot
Copy link
Owner

palerdot commented Oct 10, 2022

Think of a magnifying glass. When you look via magnifying glass, things look bigger, but the thing itself has not gotten bigger. This is just how browsers 'decide' to show you things. When the width/height actually changes, then parent width/height will be taken.

I'm just keeping it open so that people don't keep creating new issues for this.

@grifin85
Copy link

This problem is because this library is not responsive-friendly, I have tried to fix it using resize event, but do not help me.

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

No branches or pull requests

3 participants