-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Responsive grids don't render items with minW correctly on resize #2676
Comments
Seems to be caused by this function: gridstack.js/src/dd-resizable.ts Line 287 in 9b6c68f
|
+1 Was just evaluating gridstack and testing it's responsive handling and ran into this. |
fixed in next release. don't forget to donate if you find this lib useful! |
Anytime I specify column in init options or via javascript after load all my items widths shrink to 0. similarly with most other "responsive" columnOpts. I am using bootstrap "container-fluid" on the parent of the grid-stack div, but I think something about the responsiveness is fundamentally broken. |
@gazhay well that doesn't help without a demo showing the issue. also often people forget to include the correct CSS for other than 12 column layouts (extra.css) |
Can't seem to find an extra.css in the npm dist
I am also aware I wasn't helpful for not posting a demo, but I literally was just putting together code from the docs and examples - nothing extra at all - pun intended. I'll see if I can scrape extra.css from an example or something. |
Subject of the issue
If you setup responsive column breakpoints and also set the
minW
on a widget, and resize the window/grid down to something smaller than that minW, it will render incorrectly on resize and seems to just grab theminW * currentColWidth
resulting in this:Your environment
Steps to reproduce
https://jsfiddle.net/qjb3faLk/1/
Expected behavior
The resize display should be the size of the widget, even if that widget is currently smaller than the
minW
The text was updated successfully, but these errors were encountered: