Skip to content

Commit fd70a00

Browse files
authored
Update GridRenderContainer.js
1 parent d272fa3 commit fd70a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core/factories/GridRenderContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ angular.module('ui.grid')
304304
};
305305

306306
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;
308308
};
309309

310310
GridRenderContainer.prototype.getCanvasWidth = function getCanvasWidth() {

0 commit comments

Comments
 (0)