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

Incorrect layout on grid load in one column mode #2527

Closed
Jacccop opened this issue Nov 4, 2023 · 1 comment · Fixed by #2531 · May be fixed by Samg217/glpi#8
Closed

Incorrect layout on grid load in one column mode #2527

Jacccop opened this issue Nov 4, 2023 · 1 comment · Fixed by #2531 · May be fixed by Samg217/glpi#8
Labels

Comments

@Jacccop
Copy link

Jacccop commented Nov 4, 2023

Description

Loading the saved layout in one column mode does not correctly display the layout, however the layout gets fixed on additional default mode load.

Environment

  • gridstack.js 9.5
  • Chrome - reproduced on the serialization demo

Steps to reproduce

gridstack-load-bug

Expected behavior

The layout that was saved is correctly loaded in both one-column and default mode

adumesny added a commit to adumesny/gridstack.js that referenced this issue Nov 11, 2023
* fix gridstack#2527
* turned out to be much more complicated fix than expected. cleanup some of the code while debugging through it...
* make sure we nodeBoundFix() before widthChanged is checked
* cacheLayout() now checks fo existing node id so loading again doesn't mess things up
@adumesny
Copy link
Member

much harder than I expected to debug and fix... will be in next release.

don't forget to donate if you find this lib useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants