Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update GridRenderContainer.js
  • Loading branch information
Ladekarl authored Oct 20, 2016
commit fd70a00ff7ea5253906c062ec544d5976843a3bc
2 changes: 1 addition & 1 deletion src/js/core/factories/GridRenderContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ angular.module('ui.grid')
};

GridRenderContainer.prototype.getHorizontalScrollLength = function getHorizontalScrollLength() {
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;
};

GridRenderContainer.prototype.getCanvasWidth = function getCanvasWidth() {
Expand Down