You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling grid.save() in oneColumn mode, for example after grid change, original widgets configuration is not exposed in the resulting JSON config.
We store this config in localStorage.
Then, after restoring the grid in a different session (reloading the page) , loading config from storage, there is no way to deduce the original config, every widget has w = 1 and is misplaced.
Your environment
4.2.5 HTML
chrome/win
Expected behavior
The save method should generate a config that can help the grid to reload correctly.
Actual behavior
Calling save in oneColumn mode and storing the result, is resulting in a wrong original widget configuration if loading from localStorage in a following page reload.
The text was updated successfully, but these errors were encountered:
fixgridstack#1849gridstack#1816
* always save the layout with the highest resolution no matter what current column count is (eg: 12 when in 1 column mode)
to make sure we keep full resolution on restore.
adumesny
added a commit
to adumesny/gridstack.js
that referenced
this issue
Oct 16, 2021
fixgridstack#1849gridstack#1816
* always save the layout with the highest resolution no matter what
current column count is (eg: 12 when in 1 column mode)
to make sure we keep full resolution on restore.
Subject of the issue
When calling grid.save() in oneColumn mode, for example after grid change, original widgets configuration is not exposed in the resulting JSON config.
We store this config in localStorage.
Then, after restoring the grid in a different session (reloading the page) , loading config from storage, there is no way to deduce the original config, every widget has w = 1 and is misplaced.
Your environment
Expected behavior
The save method should generate a config that can help the grid to reload correctly.
Actual behavior
Calling save in oneColumn mode and storing the result, is resulting in a wrong original widget configuration if loading from localStorage in a following page reload.
The text was updated successfully, but these errors were encountered: