Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33853b9

Browse files
committed
more sizeToContent fixes
* tweak to gridstack#2561 * drap&drop not having added element)
1 parent d9e575b commit 33853b9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Change log
108108

109109
## 10.0.0-dev (TBD)
110110
* fix: [#2552](https://github.com/gridstack/gridstack.js/issues/2552) DOM init doesn't sizeToContent
111-
* fix: issues with sizeToContent and animation, cleanup, etc...
111+
* fix: [#2561](https://github.com/gridstack/gridstack.js/pull/2561) issues with sizeToContent animation, cleanup, etc...
112112
* fix: [#2558](https://github.com/gridstack/gridstack.js/pull/2558) remove style node in shadow root
113113
* fix: [#2556](https://github.com/gridstack/gridstack.js/pull/2556) make sure 'new GridStack(el)' set el.gridstack=this right away
114114
* cleanup: [#2550](https://github.com/gridstack/gridstack.js/pull/2550) Optimize resize arrow (~88% lighter from 1.82 KB to 225B)

src/gridstack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,6 +2224,7 @@ export class GridStack {
22242224
if (!subGrid.opts.styleInHead) subGrid._updateStyles(true); // re-create sub-grid styles now that we've moved
22252225
}
22262226
this._updateContainerHeight();
2227+
this.engine.addedNodes.push(node);// @ts-ignore
22272228
this._triggerAddEvent();// @ts-ignore
22282229
this._triggerChangeEvent();
22292230

0 commit comments

Comments
 (0)