Skip to content

Commit

Permalink
Set up scroll width even when width has to be detected by the list (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Apr 1, 2021
1 parent 1e6d859 commit ee2fd0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vs/base/browser/ui/list/listView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,12 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
if (this.supportDynamicHeights) {
this._rerender(this.scrollTop, this.renderHeight);
}
}

if (this.horizontalScrolling) {
this.scrollableElement.setScrollDimensions({
width: typeof width === 'number' ? width : getContentWidth(this.domNode)
});
}
if (this.horizontalScrolling) {
this.scrollableElement.setScrollDimensions({
width: typeof width === 'number' ? width : getContentWidth(this.domNode)
});
}
}

Expand Down

0 comments on commit ee2fd0e

Please sign in to comment.