mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
fix anchor range check
This commit is contained in:
@@ -528,7 +528,7 @@ export class ListView<T> implements IListView<T> {
|
||||
// do not scroll the viewport if resized element is out of viewport
|
||||
heightDiff = size - originalSize;
|
||||
} else {
|
||||
if (anchorIndex !== null && anchorIndex > index && anchorIndex <= lastRenderRange.end) {
|
||||
if (anchorIndex !== null && anchorIndex > index && anchorIndex < lastRenderRange.end) {
|
||||
// anchor in viewport
|
||||
// resized element in viewport and above the anchor
|
||||
heightDiff = size - originalSize;
|
||||
|
||||
Reference in New Issue
Block a user