Skip to content

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