Skip to content

Commit

Permalink
Update scroll dimensions before scrolltop, otherwise the scrollTop wi…
Browse files Browse the repository at this point in the history
…ll be clamped when a cell above the viewport got larger
  • Loading branch information
roblourens committed May 24, 2022
1 parent 39e4db2 commit 35c61b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/browser/ui/list/listView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,9 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
this.items[index].size = size;

this.render(lastRenderRange, Math.max(0, this.lastRenderTop + heightDiff), this.lastRenderHeight, undefined, undefined, true);
this.setScrollTop(this.lastRenderTop);

this.eventuallyUpdateScrollDimensions();
this.setScrollTop(this.lastRenderTop);

if (this.supportDynamicHeights) {
this._rerender(this.lastRenderTop, this.lastRenderHeight);
Expand Down

0 comments on commit 35c61b2

Please sign in to comment.