File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -522,10 +522,9 @@ Used to add a subgrid into an existing grid.
522522const grid = Gridstack .init ()
523523grid .el .appendChild (`
524524<div id="gsi-1" gs-x="0" gs-y="0" gs-w="3" gs-h="2" gs-auto-position="true">
525- <div class="grid-stack" id="nested-grid">
526- <div id="gsi-2" gs-x="0" gs-y="0" gs-w="3" gs-h="2" gs-auto-position="true">
527- </div>
528- </div>
525+ <div class="grid-stack" id="nested-grid">
526+ <div id="gsi-2" gs-x="0" gs-y="0" gs-w="3" gs-h="2" gs-auto-position="true"></div>
527+ </div>
529528</div>` )
530529grid .makeSubGrid (grid .el .getElementById (' nested-grid' ))
531530```
Original file line number Diff line number Diff line change @@ -1690,7 +1690,7 @@ export class GridStack {
16901690 this . _writePosAttr ( el , node ) ;
16911691
16921692 let attrs /*: GridStackWidget but strings */ = { // remaining attributes
1693- autoPosition : 'gs-auto-position' ,
1693+ // autoPosition: 'gs-auto-position', // no need to write out as already in node and doesn't affect CSS
16941694 noResize : 'gs-no-resize' ,
16951695 noMove : 'gs-no-move' ,
16961696 locked : 'gs-locked' ,
You can’t perform that action at this time.
0 commit comments