Thanks to visit codestin.com
Credit goes to github.com

Skip to content

_is_one_column_mode unreliable within five pixels #147

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

Merged
merged 1 commit into from
May 30, 2015
Merged

_is_one_column_mode unreliable within five pixels #147

merged 1 commit into from
May 30, 2015

Conversation

radiolips
Copy link
Member

$(window).width() is incorrect by about 5 pixels, causing _is_one_column_mode to be incorrect. To test this, go to any gridstack and make the page width 769px. Single column mode via CSS will not kick in, yet elements will not be draggable.

…umn_mode to be incorrect. To test this, go to any gridstack and make the page width 769px. Single column mode via CSS will not kick in, yet elements will not be draggable.
@radiolips
Copy link
Member Author

This can be seen even on http://troolee.github.io/gridstack.js/ - make the page just over 768px (769, 770) and try to drag-and-drop the elements. I am testing this on Mac - Chrome, but I would guess it happens on most (all) browsers.

@radiolips
Copy link
Member Author

Upon further testing, this appears to only happen with certain resolutions - including Thunderbolt display and another high-dpi 27" monitor. However, with the 15" resolutionary Macbook Pro, it does not happen.

troolee added a commit that referenced this pull request May 30, 2015
_is_one_column_mode unreliable within five pixels
@troolee troolee merged commit a334bc9 into gridstack:master May 30, 2015
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