optimize scroll view from bottom.

This commit is contained in:
rebornix
2021-03-12 10:43:41 -08:00
parent 5af4ccb87b
commit c1f954ce48
@@ -682,7 +682,7 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
const endElementHeight = this.view.elementHeight(endIndex);
if (endElementTop >= wrapperBottom) {
return this._revealInternal(startIndex, false, CellRevealPosition.Top);
return this._revealInternal(endIndex, false, CellRevealPosition.Bottom);
}
if (endElementTop < wrapperBottom) {