Skip to content

[Dimensions] consistent measurements with window zoom #2520

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

Closed
wants to merge 1 commit into from

Conversation

alitoshmatov
Copy link
Contributor

@alitoshmatov alitoshmatov commented May 13, 2023

Details

We are fixing window.height and window.width not change when pinch zoomed, since it is expected behavior. This issue was introduced with #2438 where documentElement measures where replaced by measures from visualViewport

After

dimensions-rnw.mov

Before

before-dimensions-rnw.mov

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@necolas necolas added this to the 0.19.x milestone May 26, 2023
@necolas necolas changed the title Multiplying scale to width and height to get consistent measures rega… [Dimensions] consistent measurements with window zoom May 31, 2023
@necolas
Copy link
Owner

necolas commented May 31, 2023

cc @rawalyogendra

@necolas necolas closed this in 6ab9b61 Jun 16, 2023
@necolas
Copy link
Owner

necolas commented Jun 16, 2023

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants