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

sizeToContent fixes (animation, DOM init, cleanup) #2561

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

adumesny
Copy link
Member

@adumesny adumesny commented Dec 9, 2023

Description

Also:

  • fixed drag&drop not calling size either
  • prevent animation when loading (from empty) and when replacing placeholder with actual content (helps in sizeToContent)
  • resizeToContent() no longer use dic sizing (only node.h) so we rarely have to delay for animation (only when column widget changes)
  • bunch of renames (internal) to make cleaner.

*** POSSIBLE BREAK (unlikely)

  • ResizeToContentFcn doesn't take optional useAttr arg anymore

Checklist

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

* fix gridstack#2552 where dom init wasn't calling sizeToContent

Also:
* fixed drag&drop not calling size either
* prevent animation when loading (from empty) and when replacing placeholder with actual content (helps in sizeToContent)
* resizeToContent() no longer use dic sizing (only node.h) so we rarely have to delay for animation (only when column widget changes)
* bunch of renames (internal) to make cleaner.

*** POSSIBLE BREAK (unlikely)
* ResizeToContentFcn doesn't take optional useAttr arg anymore
@adumesny adumesny merged commit 6e537a4 into gridstack:master Dec 9, 2023
adumesny added a commit to adumesny/gridstack.js that referenced this pull request Dec 10, 2023
* tweak to gridstack#2561
* drap&drop not having added element)
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.

sizeToContent is not triggered when initializing from HTML
1 participant