We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d272fa3 commit fd70a00Copy full SHA for fd70a00
src/js/core/factories/GridRenderContainer.js
@@ -304,7 +304,7 @@ angular.module('ui.grid')
304
};
305
306
GridRenderContainer.prototype.getHorizontalScrollLength = function getHorizontalScrollLength() {
307
- return this.getCanvasWidth() - this.getViewportWidth() + this.grid.scrollbarWidth;
+ return this.getCanvasWidth() - this.getViewportWidth() + this.grid.scrollbarWidth !== 0 ? this.getCanvasWidth() - this.getViewportWidth() + this.grid.scrollbarWidth : -1;
308
309
310
GridRenderContainer.prototype.getCanvasWidth = function getCanvasWidth() {
0 commit comments