diff --git a/lib/ui/grid/grid.js b/lib/ui/grid/grid.js index b5be07e..1193c41 100644 --- a/lib/ui/grid/grid.js +++ b/lib/ui/grid/grid.js @@ -3537,7 +3537,13 @@ export class Grid { } } - _topToIndex(top) { + /** + * @private + * @param {number} top + * @param {boolean} [reload] + * @returns {number} + */ + _topToIndex(top, reload) { const rowHeight = (this.rowHeight + 1); top -= (top % (rowHeight * 2)) + (RedumCount * rowHeight); if (top < 0) { @@ -3561,7 +3567,7 @@ export class Grid { * @returns {number} */ _scrollToTop(top, reload) { - const tti = this._topToIndex(top); + const tti = this._topToIndex(top, reload); top = tti.top; if (this._var.scrollTop !== top) { this._var.scrollTop = top;