File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 635635 var o = $ ( this ) ;
636636 self . grid . clean_nodes ( ) ;
637637 self . grid . begin_update ( node ) ;
638- cell_width = Math . ceil ( o . outerWidth ( ) / o . attr ( 'data-gs-width' ) ) ;
638+ cell_width = o . outerWidth ( ) / o . attr ( 'data-gs-width' ) ;
639639 cell_height = self . opts . cell_height + self . opts . vertical_margin ;
640640 self . placeholder
641641 . attr ( 'data-gs-x' , o . attr ( 'data-gs-x' ) )
645645 . show ( ) ;
646646 node . el = self . placeholder ;
647647
648- el . resizable ( 'option' , 'minWidth' , cell_width * ( node . min_width || 1 ) ) ;
648+ el . resizable ( 'option' , 'minWidth' , Math . round ( cell_width * ( node . min_width || 1 ) ) ) ;
649649 el . resizable ( 'option' , 'minHeight' , self . opts . cell_height * ( node . min_height || 1 ) ) ;
650650 } ;
651651
Original file line number Diff line number Diff line change 640640 var o = $ ( this ) ;
641641 self . grid . clean_nodes ( ) ;
642642 self . grid . begin_update ( node ) ;
643- cell_width = Math . ceil ( o . outerWidth ( ) / o . attr ( 'data-gs-width' ) ) ;
643+ cell_width = o . outerWidth ( ) / o . attr ( 'data-gs-width' ) ;
644644 cell_height = self . opts . cell_height + self . opts . vertical_margin ;
645645 self . placeholder
646646 . attr ( 'data-gs-x' , o . attr ( 'data-gs-x' ) )
650650 . show ( ) ;
651651 node . el = self . placeholder ;
652652
653- el . resizable ( 'option' , 'minWidth' , cell_width * ( node . min_width || 1 ) ) ;
653+ el . resizable ( 'option' , 'minWidth' , Math . round ( cell_width * ( node . min_width || 1 ) ) ) ;
654654 el . resizable ( 'option' , 'minHeight' , self . opts . cell_height * ( node . min_height || 1 ) ) ;
655655 } ;
656656
You can’t perform that action at this time.
0 commit comments