Skip to content

Commit

Permalink
Fix table list height. Fixes #120062 (#120102) (#120168)
Browse files Browse the repository at this point in the history
Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
  • Loading branch information
joaomoreno and jeanp413 authored Mar 30, 2021
1 parent c71be15 commit c185983
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vs/base/browser/ui/table/tableWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c185983

Please sign in to comment.