Skip to content

Commit

Permalink
fix(core): scrollTo rightBound calculation
Browse files Browse the repository at this point in the history
closes #4389
  • Loading branch information
jonathanchris committed Sep 21, 2015
1 parent c4483de commit 2822787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/factories/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2298,7 +2298,7 @@ angular.module('ui.grid')
//}

// The right position is the current X scroll position minus the grid width
var rightBound = self.renderContainers.body.prevScrollLeft + Math.ceil(self.gridWidth);
var rightBound = self.renderContainers.body.prevScrollLeft + Math.ceil(self.renderContainers.body.getViewportWidth());

// If there's a vertical scrollbar, subtract it from the right boundary or we'll allow it to obscure cells
//if (self.verticalScrollbarWidth) {
Expand Down

0 comments on commit 2822787

Please sign in to comment.