You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Had a user of my theme complain that they were losing the grid when zoomed in 125% at a certain browser width.
For example, if you zoom in 125% in Chrome 52.0.2743.116 m and resize the browser so it's at the exact pixel before the regular grid turns into the tablet grid (min-width: 1025px in my case), no grid applies for that 1px.
This doesn't happen at regular zoom, it goes from min-width:1025px to max-width:1024px flawlessly.
It only happens when zoomed in.
If I switch it to max-width:1024.9px, it works fine.
I'm assuming the browser is adding decimal points to the width, which is causing the issue.
Is there a better way around this? Maybe there's something logically wrong with my code?
I was pulling my hair out, one of my users kept bringing it up and it made no sense to me.
I don't think it's retina, it's just the way Chrome (maybe others) sets the browser size when zoomed in. At some point neither 1024px or 1025px are true (when it's in the middle).
Had a user of my theme complain that they were losing the grid when zoomed in 125% at a certain browser width.
For example, if you zoom in 125% in Chrome 52.0.2743.116 m and resize the browser so it's at the exact pixel before the regular grid turns into the tablet grid (min-width: 1025px in my case), no grid applies for that 1px.
This doesn't happen at regular zoom, it goes from min-width:1025px to max-width:1024px flawlessly.
It only happens when zoomed in.
If I switch it to max-width:1024.9px, it works fine.
I'm assuming the browser is adding decimal points to the width, which is causing the issue.
Is there a better way around this? Maybe there's something logically wrong with my code?
Here's an example of what I'm doing: http://codepen.io/tomusborne/pen/dXaxOj
Thanks!
The text was updated successfully, but these errors were encountered: