Skip to content

1 column mode loading, saving 12 column layout#2088

Merged
adumesny merged 1 commit into
gridstack:masterfrom
adumesny:master
Oct 23, 2022
Merged

1 column mode loading, saving 12 column layout#2088
adumesny merged 1 commit into
gridstack:masterfrom
adumesny:master

Conversation

@adumesny

Copy link
Copy Markdown
Member

Description

fix #1985
fix #1975 (oneColumnModeDomSort case)

  • we now handle DOM and addWidget() when temporally into 1 column mode better to save the full 12 column mode
  • also DOM reading will reverse-sort entries to lay them in 1 column mode correctly (like if you had started with 12 and scaled down)

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

fix gridstack#1985
fix gridstack#1975 (oneColumnModeDomSort case)

* we now handle DOM and addWidget() when temporally into 1 column mode better to save the full 12 column mode
* also DOM reading will reverse-sort entries to lay them in 1 column mode correctly (like if you had started with 12 and scaled down)
@adumesny adumesny merged commit 6227910 into gridstack:master Oct 23, 2022
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.

addWidget() or DOM read in single column mode will not adjust to multicolumn mode Resizing window causes grid items to be positioned out of order

1 participant