File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 169
169
placeholder_class : 'grid-stack-placeholder' ,
170
170
handle : '.grid-stack-item-content' ,
171
171
cell_height : 60 ,
172
- vertical_margin : 20
172
+ vertical_margin : 20 ,
173
+ auto : true
173
174
} ) ;
174
175
175
176
this . grid = new GridStackEngine ( this . opts . width , function ( nodes ) {
182
183
} ) ;
183
184
} ) ;
184
185
185
- this . container . find ( '.' + this . opts . item_class ) . each ( function ( index , el ) {
186
- self . _prepare_element ( el ) ;
187
- } ) ;
186
+ if ( this . opts . auto ) {
187
+ this . container . find ( '.' + this . opts . item_class ) . each ( function ( index , el ) {
188
+ self . _prepare_element ( el ) ;
189
+ } ) ;
190
+ }
188
191
189
192
this . placeholder = $ ( '<div class="' + this . opts . placeholder_class + ' ' + this . opts . item_class + '"><div class="placeholder-content" /></div>' ) . hide ( ) ;
190
193
this . container . append ( this . placeholder ) ;
You can’t perform that action at this time.
0 commit comments