Check whether cell is _entirely_ in the view, not partially (#151003)

Fix #123828
This commit is contained in:
Rob Lourens 2022-06-01 17:30:54 -07:00 committed by GitHub
parent b9b2862341
commit 445d4aad1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1241,7 +1241,7 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
if (ignoreIfInsideViewport
&& elementTop >= scrollTop
&& elementTop < wrapperBottom) {
&& elementBottom < wrapperBottom) {
if (revealPosition === CellRevealPosition.Center
&& elementBottom > wrapperBottom