File tree 1 file changed +3
-14
lines changed
1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 384
384
385
385
one_column_mode = true ;
386
386
387
+ self . grid . _sort_nodes ( ) ;
387
388
_ . each ( self . grid . nodes , function ( node ) {
389
+ self . container . append ( node . el ) ;
390
+
388
391
if ( ! node . no_move ) {
389
392
node . el . draggable ( 'disable' ) ;
390
393
}
498
501
self . container . trigger ( 'change' , [ self . grid . get_dirty_nodes ( ) ] ) ;
499
502
500
503
self . grid . end_update ( ) ;
501
-
502
- self . grid . _sort_nodes ( ) ;
503
- setTimeout ( function ( ) { //if animating, delay detaching & reattaching all elements until animation finishes
504
- _ . each ( self . grid . nodes , function ( node ) {
505
- node . el . detach ( ) ;
506
- self . container . append ( node . el ) ;
507
- } ) ;
508
- } , ( self . opts . animate ? 300 : 0 ) ) ;
509
504
} ;
510
505
511
506
el . draggable ( {
669
664
self . container . trigger ( 'change' , [ self . grid . get_dirty_nodes ( ) ] ) ;
670
665
671
666
self . grid . end_update ( ) ;
672
-
673
- self . grid . _sort_nodes ( ) ;
674
- _ . each ( self . grid . nodes , function ( node ) {
675
- node . el . detach ( ) ;
676
- self . container . append ( node . el ) ;
677
- } ) ;
678
667
} ;
679
668
680
669
GridStack . prototype . resize = function ( el , width , height ) {
You can’t perform that action at this time.
0 commit comments