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.
522
522
const grid = Gridstack .init ()
523
523
grid .el .appendChild (`
524
524
<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>
529
528
</div>` )
530
529
grid .makeSubGrid (grid .el .getElementById (' nested-grid' ))
531
530
```
Original file line number Diff line number Diff line change @@ -1690,7 +1690,7 @@ export class GridStack {
1690
1690
this . _writePosAttr ( el , node ) ;
1691
1691
1692
1692
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
1694
1694
noResize : 'gs-no-resize' ,
1695
1695
noMove : 'gs-no-move' ,
1696
1696
locked : 'gs-locked' ,
You can’t perform that action at this time.
0 commit comments