diff options
author | João Moreno <joao.moreno@microsoft.com> | 2021-03-30 15:04:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 15:04:46 +0300 |
commit | c185983a683d14c396952dd432459097bc7f757f (patch) | |
tree | 11685a1cca90c6dcff30a7c2ebad9c86ace970a3 | |
parent | c71be15869a673c5ed7bfd3fe171757d2ba48142 (diff) |
Fix table list height. Fixes #120062 (#120102) (#120168)1.55.0
Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
-rw-r--r-- | src/vs/base/browser/ui/table/tableWidget.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vs/base/browser/ui/table/tableWidget.ts b/src/vs/base/browser/ui/table/tableWidget.ts index 033474eb7cf..2600fcb7509 100644 --- a/src/vs/base/browser/ui/table/tableWidget.ts +++ b/src/vs/base/browser/ui/table/tableWidget.ts @@ -250,7 +250,10 @@ export class Table<TRow> implements ISpliceable<TRow>, IThemable, IDisposable { this.cachedHeight = height; this.splitview.layout(width); - this.list.layout(height - this.virtualDelegate.headerRowHeight, width); + + const listHeight = height - this.virtualDelegate.headerRowHeight; + this.list.getHTMLElement().style.height = `${listHeight}px`; + this.list.layout(listHeight, width); } toggleKeyboardNavigation(): void { |