Set up scroll width even when width has to be detected by the list (#120281)

Fix #120277
This commit is contained in:
Rob Lourens
2021-04-01 05:10:33 -07:00
committed by GitHub
parent 1e6d85953d
commit ee2fd0ea63
+5 -5
View File
@@ -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)
});
}
}