Skip to content

Commit

Permalink
more sizeToContent fixes
Browse files Browse the repository at this point in the history
* tweak to gridstack#2561
* drap&drop not having added element)
  • Loading branch information
adumesny committed Dec 10, 2023
1 parent d9e575b commit 33853b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Change log

## 10.0.0-dev (TBD)
* fix: [#2552](https://github.com/gridstack/gridstack.js/issues/2552) DOM init doesn't sizeToContent
* fix: issues with sizeToContent and animation, cleanup, etc...
* fix: [#2561](https://github.com/gridstack/gridstack.js/pull/2561) issues with sizeToContent animation, cleanup, etc...
* fix: [#2558](https://github.com/gridstack/gridstack.js/pull/2558) remove style node in shadow root
* fix: [#2556](https://github.com/gridstack/gridstack.js/pull/2556) make sure 'new GridStack(el)' set el.gridstack=this right away
* cleanup: [#2550](https://github.com/gridstack/gridstack.js/pull/2550) Optimize resize arrow (~88% lighter from 1.82 KB to 225B)
Expand Down
1 change: 1 addition & 0 deletions src/gridstack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2224,6 +2224,7 @@ export class GridStack {
if (!subGrid.opts.styleInHead) subGrid._updateStyles(true); // re-create sub-grid styles now that we've moved
}
this._updateContainerHeight();
this.engine.addedNodes.push(node);// @ts-ignore
this._triggerAddEvent();// @ts-ignore
this._triggerChangeEvent();

Expand Down

0 comments on commit 33853b9

Please sign in to comment.