Skip to content

Conversation

@adumesny
Copy link
Member

Description

  • partial fix for Bugs with new fitToContent (1rem, calling cellHeight) #2427
  • when changing cellHeight, or calling addWidget() | makeWidget() we now call doContentResize()
  • fixed doContentResize logic to use expected size (using cellHeight) instead of actual DOM values so we don't need to delay until animation is done (unlike column width which does affect calc height for content reflow)

TODO: support 1rem type of cellHeight.

Checklist

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

* partial fix for gridstack#2427
* when changing cellHeight, or calling addWidget() | makeWidget() we now call doContentResize()
* fixed doContentResize logic to use expected size (using cellHeight) instead of actual DOM values so we don't need to delay until animation is done (unlike column width which does affect calc height for content reflow)

TODO: support 1rem type of cellHeight.
@adumesny adumesny merged commit 548a27f into gridstack:master Aug 29, 2023
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.

1 participant