File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1655,18 +1655,16 @@ class BrowserLayout {
16551655 let sl = area . style ( 'left' ) , st = area . style ( 'top' ) ;
16561656 this . _float_left = parseInt ( sl . slice ( 0 , sl . length - 2 ) ) ;
16571657 this . _float_top = parseInt ( st . slice ( 0 , st . length - 2 ) ) ;
1658- this . _max_left = main . node ( ) . clientWidth - area . node ( ) . offsetWidth - 1 ;
1659- this . _max_top = main . node ( ) . clientHeight - area . node ( ) . offsetHeight - 1 ;
1658+ this . _max_left = Math . max ( 0 , main . node ( ) . clientWidth - area . node ( ) . offsetWidth - 1 ) ;
1659+ this . _max_top = Math . max ( 0 , main . node ( ) . clientHeight - area . node ( ) . offsetHeight - 1 ) ;
16601660
16611661 } ) . filter ( evnt => {
16621662 return main . select ( '.jsroot_browser_title' ) . node ( ) === evnt . target ;
16631663 } ) . on ( 'drag' , evnt => {
16641664 this . _float_left += evnt . dx ;
16651665 this . _float_top += evnt . dy ;
1666-
16671666 area . style ( 'left' , Math . min ( Math . max ( 0 , this . _float_left ) , this . _max_left ) + 'px' )
16681667 . style ( 'top' , Math . min ( Math . max ( 0 , this . _float_top ) , this . _max_top ) + 'px' ) ;
1669-
16701668 this . setButtonsPosition ( ) ;
16711669 } ) ;
16721670
You can’t perform that action at this time.
0 commit comments