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
min-width and max-width broken on hi-dpi screens #2714
Comments
Do you mean that the In any case did you try using |
You're correct in that It's not the content that's zoomed, it's the browser window itself that is sized too large - the content rendering appears correct and crisp at the HiDPI (awesome). |
Something I brought up in #1806: on scaled desktops, window.outerHeight / outerWidth are set incorrectly. They appear to be scaled down based on the windows desktop scale ratio. So if you have desktop scaling set to 200%, a window 800px wide will have a outerWidth of 400. This might be related to this issue. |
I'm merging this to #1806. |
This is a Windows issue.
Tested on Windows 10 using a retina Macbook, Electron 0.31.1
With a hi-dpi screen the
min-width
andmax-width
attributes are interpreted as double size, so if I set amin-width
of 500px on the browser-window it will actually enforce amin-width
of 1000px. Same applies for height.Obviously because customers will have a mixture of screen DPI's (increasingly hi-dpi) this means that the min and max options can't be used at all as they stretch the app out on the hires screens.
The text was updated successfully, but these errors were encountered: