Skip to content

Commit 8b79a00

Browse files
authored
Fix renderHeight being undefined (microsoft#165373)
1 parent 739bf4e commit 8b79a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/timeline/browser/timelinePane.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export class TimelinePane extends ViewPane {
328328
let pageSize = this.configurationService.getValue<number | null | undefined>('timeline.pageSize');
329329
if (pageSize === undefined || pageSize === null) {
330330
// If we are paging when scrolling, then add an extra item to the end to make sure the "Load more" item is out of view
331-
pageSize = Math.max(20, Math.floor((this.tree.renderHeight / ItemHeight) + (this.pageOnScroll ? 1 : -1)));
331+
pageSize = Math.max(20, Math.floor((this.tree?.renderHeight ?? 0 / ItemHeight) + (this.pageOnScroll ? 1 : -1)));
332332
}
333333
return pageSize;
334334
}

0 commit comments

Comments
 (0)