File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ Describe your issue here.
3
3
4
4
## Your environment
5
5
* version of gridstack.js AND if using HTML5 vs Jquery plugin (v3+) - DON'T SAY LATEST as that doesn't mean anything a month/year from now.
6
- * which browser and its version
6
+ * which browser/OS
7
7
8
8
## Steps to reproduce
9
- MUST provide a working demo (keep it simple!) and steps, you can use this as a base:
10
- https://jsfiddle.net/adumesny/jqhkry7g
9
+ You ** MUST** provide a working demo (keep it simple!) and steps, you can use [ this template] ( https://jsfiddle.net/adumesny/jqhkry7g ) as a base.
10
+
11
+ If un-sure if lib bug, or questions use [ slack channel] ( https://gridstackjs.troolee.com/ ) instead!
11
12
12
13
## Expected behavior
13
14
Tell us what should happen
Original file line number Diff line number Diff line change @@ -54,14 +54,15 @@ <h1>Nested grids demo</h1>
54
54
let grid = GridStack . addGrid ( document . querySelector ( '.container-fluid' ) , json ) ;
55
55
56
56
addNewWidget = function ( selector ) {
57
+ let subGrid = document . querySelector ( selector ) . gridstack ;
57
58
let node = {
58
- x : Math . round ( 12 * Math . random ( ) ) ,
59
+ x : Math . round ( 6 * Math . random ( ) ) ,
59
60
y : Math . round ( 5 * Math . random ( ) ) ,
60
- w : Math . round ( 1 + 3 * Math . random ( ) ) ,
61
- h : Math . round ( 1 + 3 * Math . random ( ) ) ,
61
+ w : Math . round ( 1 + 1 * Math . random ( ) ) ,
62
+ h : Math . round ( 1 + 1 * Math . random ( ) ) ,
62
63
content : count ++
63
64
} ;
64
- grid . addWidget ( node ) ;
65
+ subGrid . addWidget ( node ) ;
65
66
return false ;
66
67
} ;
67
68
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Change log
5
5
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
6
6
** Table of Contents** * generated with [ DocToc] ( http://doctoc.herokuapp.com/ ) *
7
7
8
+ - [ 4.0.3-dev] ( #403-dev )
8
9
- [ 4.0.3 (2021-3-28)] ( #403-2021-3-28 )
9
10
- [ 4.0.2 (2021-3-27)] ( #402-2021-3-27 )
10
11
- [ 4.0.1 (2021-3-20)] ( #401-2021-3-20 )
@@ -51,6 +52,8 @@ Change log
51
52
- [ v0.1.0 (2014-11-18)] ( #v010-2014-11-18 )
52
53
53
54
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
55
+ ## 4.0.3-dev
56
+
54
57
## 4.0.3 (2021-3-28)
55
58
56
59
- fix [ #1693 ] ( https://github.com/gridstack/gridstack.js/issues/1693 ) ` load ` after ` init() ` broken in 4.x
You can’t perform that action at this time.
0 commit comments