Skip to content

Commit

Permalink
fix issue with scrollToRow function in "bottom" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
olifolkerd committed May 26, 2022
1 parent 1e1ce2c commit 84ad31b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/js/tabulator_esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -19454,6 +19454,8 @@ class Renderer extends CoreFeature{
this.elementVertical.scrollTop = this.elementVertical.scrollTop - this.elementVertical.clientHeight + rowEl.offsetHeight;
}

break;

case "top":
this.elementVertical.scrollTop = rowEl.offsetTop;
break;
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/js/core/rendering/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ export default class Renderer extends CoreFeature{
this.elementVertical.scrollTop = this.elementVertical.scrollTop - this.elementVertical.clientHeight + rowEl.offsetHeight;
}

break;

case "top":
this.elementVertical.scrollTop = rowEl.offsetTop;
break;
Expand Down

0 comments on commit 84ad31b

Please sign in to comment.