File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 429
429
430
430
if ( this . opts . auto ) {
431
431
var elements = [ ] ;
432
+ var _this = this ;
432
433
this . container . children ( '.' + this . opts . item_class ) . each ( function ( index , el ) {
433
434
el = $ ( el ) ;
434
435
elements . push ( {
435
436
el : el ,
436
- i : parseInt ( el . attr ( 'data-gs-x' ) ) + parseInt ( el . attr ( 'data-gs-y' ) ) * parseInt ( el . attr ( 'data-gs- width' ) )
437
+ i : parseInt ( el . attr ( 'data-gs-x' ) ) + parseInt ( el . attr ( 'data-gs-y' ) ) * _this . opts . width // Use opts.width as weight for Y
437
438
} ) ;
438
439
} ) ;
439
440
_ . chain ( elements ) . sortBy ( function ( x ) { return x . i ; } ) . each ( function ( i ) {
590
591
. attr ( 'data-gs-height' , o . attr ( 'data-gs-height' ) )
591
592
. show ( ) ;
592
593
node . el = self . placeholder ;
594
+
595
+ el . resizable ( 'option' , 'minWidth' , cell_width * ( node . min_width || 1 ) ) ;
596
+ el . resizable ( 'option' , 'minHeight' , self . opts . cell_height * ( node . min_height || 1 ) ) ;
593
597
} ;
594
598
595
599
var on_end_moving = function ( event , ui ) {
You can’t perform that action at this time.
0 commit comments