Skip to content
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

nested grid layout lost when loading in 1 column mode #2235

Open
fredericrous opened this issue Mar 20, 2023 · 1 comment
Open

nested grid layout lost when loading in 1 column mode #2235

fredericrous opened this issue Mar 20, 2023 · 1 comment
Labels

Comments

@fredericrous
Copy link
Contributor

Subject of the issue

gridstack elements don't move to the top when screen is resized from mobile 1 column to standard view

Your environment

  • version of gridstack.js - v7.2.3 (can reproduce on v6 as well)
  • which browser/OS chrome/mac

Steps to reproduce

  • navigate to https://gridstackjs.com/demo/nested_advanced.html
  • obsever the widgets are all stacked up to the top
  • reduce your browser's window until the one column mode triggers
  • refresh the page ⚠️
  • resize the window again to go out of the mobile mode
  • you can observe the widgets do not get back to the place they are supposed to be

Expected behavior

I expect the widgets to be stacked up at the top of the page when I resize a small browser window (float: true)

@adumesny
Copy link
Member

this will be harder to fix - note that I don't support 1 column by default anymore, so you have to add this for old behavior columnOpts: { breakpoints: [{w:768, c:1}] },

image

@adumesny adumesny changed the title float state is lost when I resize the window mobile to big nested grid layout lost when loading in 1 column mode Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants