File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -300,11 +300,11 @@ angular.module('ui.grid')
300
300
} ;
301
301
302
302
GridRenderContainer . prototype . getVerticalScrollLength = function getVerticalScrollLength ( ) {
303
- return this . getCanvasHeight ( ) - this . getViewportHeight ( ) + this . grid . scrollbarHeight ;
303
+ return this . getCanvasHeight ( ) - this . getViewportHeight ( ) + this . grid . scrollbarHeight !== 0 ? this . getCanvasHeight ( ) - this . getViewportHeight ( ) + this . grid . scrollbarHeight : - 1 ;
304
304
} ;
305
305
306
306
GridRenderContainer . prototype . getHorizontalScrollLength = function getHorizontalScrollLength ( ) {
307
- return this . getCanvasWidth ( ) - this . getViewportWidth ( ) + this . grid . scrollbarWidth ;
307
+ return this . getCanvasWidth ( ) - this . getViewportWidth ( ) + this . grid . scrollbarWidth !== 0 ? this . getCanvasWidth ( ) - this . getViewportWidth ( ) + this . grid . scrollbarWidth : - 1 ;
308
308
} ;
309
309
310
310
GridRenderContainer . prototype . getCanvasWidth = function getCanvasWidth ( ) {
You can’t perform that action at this time.
0 commit comments