mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
large cell should not override firstLine behavior
This commit is contained in:
parent
e06ad018da
commit
b353717a67
|
@ -838,8 +838,8 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
|
|||
const firstIndex = this.view.firstVisibleIndex;
|
||||
const elementHeight = this.view.elementHeight(viewIndex);
|
||||
|
||||
if (viewIndex <= firstIndex || elementHeight >= this.view.renderHeight) {
|
||||
this._revealInternal(viewIndex, true, CellRevealPosition.Top, firstLine);
|
||||
if (viewIndex <= firstIndex || (!firstLine && elementHeight >= this.view.renderHeight)) {
|
||||
this._revealInternal(viewIndex, true, CellRevealPosition.Top);
|
||||
} else {
|
||||
this._revealInternal(viewIndex, true, CellRevealPosition.Bottom, firstLine);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue