We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f715767 commit 0d7d37bCopy full SHA for 0d7d37b
src/js/core/factories/Grid.js
@@ -2332,7 +2332,7 @@ angular.module('ui.grid')
2332
//}
2333
2334
// This is the minimum amount of pixels we need to scroll vertical in order to see this row.
2335
- var pixelsToSeeRow = ((seekRowIndex + 1) * self.options.rowHeight);
+ var pixelsToSeeRow = (seekRowIndex * self.options.rowHeight + self.headerHeight);
2336
2337
// Don't let the pixels required to see the row be less than zero
2338
pixelsToSeeRow = (pixelsToSeeRow < 0) ? 0 : pixelsToSeeRow;
0 commit comments