Skip to content

Commit

Permalink
list do not cache 0 height
Browse files Browse the repository at this point in the history
fixes #85897
  • Loading branch information
isidorn committed Dec 13, 2019
1 parent 1bf341e commit c7f15b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/base/browser/ui/list/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ export abstract class CachedListVirtualDelegate<T extends object> implements ILi
abstract getTemplateId(element: T): string;

setDynamicHeight(element: T, height: number): void {
this.cache.set(element, height);
if (height > 0) {
this.cache.set(element, height);
}
}
}

0 comments on commit c7f15b3

Please sign in to comment.