-
Notifications
You must be signed in to change notification settings - Fork 58
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
Bad layout on high dpi at certain browser width #851
Comments
I just looked into this and fixing will be extremely difficult. Essentially the problem is that in media queries, once you are zoomed in, the browser handles the math differently. We use
None of these are appealing to me. This is a pretty small edge case (zoomed in and screen width is exactly X pixels wide), so I think this should be tabled until Sass and Browsers implement level 4 media queries, at which point we can address it. For what it's worth, bootstrap also had this issue and they decided to not fix: twbs/bootstrap#19197 |
@paulcpederson thanks for looking into this. I see that this is hard to fix properly.
The reason I'm running into this regularly, is that the critical pixel width happens to be exactly half the width of my screen, and I often dock the browser with the windows key + arrow keys. Would it be possible to move the breakpoint by a few pixels to make this edge case less likely to be hit in practice? My setup (everything pretty common I think):
|
@sreinhard why do you zoom in? |
@sreinhard @lheberlie can you two try this out again. There was a slight tweak to the columns, so I'm wondering if that helped at all. |
@paulcpederson how would I test this? I can still reproduce the issue on https://jscore.esri.com/javascript/latest The reason I zoom in, is that text is easier to read on my monitor. Note that this is a global Windows setting, which the browser picks up. The zoom level in my browser is 100%. |
@sreinhard visit the Calcite Web docs (http://esri.github.io/calcite-web/documentation/) with the configuration that's problematic and see if that breakpoint hits at the exactly wrong place for you still. The js docs won't be on the newer version of the CSS framework yet. |
@paulcpederson on this page the half screen layout is ok. the bad layout happens at around 859 pixels now, which is very hard to hit manually for me. |
OK, I think we can close this as a known issue. Once level-4 media queries are widely supported and Sass allows their syntax we can reopen and improve. |
This feedback was received from the Zurich JavaScript team at a training event recently hosted. While users were reading the ArcGIS API for JavaScript and the browser zoom (
Ctrl/Cmd + 1
) is activated on high dpi displays, the layout is bad around the breakpoint. Both navigation tabs and dropdown are visible, and the content is below the sidebar. I am not sure what browser or version was used.devicePixelRatio: 1.25
window.innerwidth: 1023
The text was updated successfully, but these errors were encountered: