From ee2fd0ea637f735eb13a20f03687edd507b3657d Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Thu, 1 Apr 2021 05:10:33 -0700 Subject: [PATCH] Set up scroll width even when width has to be detected by the list (#120281) Fix #120277 --- src/vs/base/browser/ui/list/listView.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vs/base/browser/ui/list/listView.ts b/src/vs/base/browser/ui/list/listView.ts index 0ebc24f9ff7..ee8fd156e23 100644 --- a/src/vs/base/browser/ui/list/listView.ts +++ b/src/vs/base/browser/ui/list/listView.ts @@ -680,12 +680,12 @@ export class ListView implements ISpliceable, 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) + }); } }