We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 739bf4e commit 8b79a00Copy full SHA for 8b79a00
src/vs/workbench/contrib/timeline/browser/timelinePane.ts
@@ -328,7 +328,7 @@ export class TimelinePane extends ViewPane {
328
let pageSize = this.configurationService.getValue<number | null | undefined>('timeline.pageSize');
329
if (pageSize === undefined || pageSize === null) {
330
// 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)));
+ pageSize = Math.max(20, Math.floor((this.tree?.renderHeight ?? 0 / ItemHeight) + (this.pageOnScroll ? 1 : -1)));
332
}
333
return pageSize;
334
0 commit comments