提交 b42d1d5e 编写于 作者: R rebornix

remove unused list hack

上级 dc0ed1ac
......@@ -12,7 +12,6 @@ export interface IListVirtualDelegate<T> {
getTemplateId(element: T): string;
hasDynamicHeight?(element: T): boolean;
setDynamicHeight?(element: T, height: number): void;
getDynamicHeight?(element: T): number;
}
export interface IListRenderer<T, TTemplateData> {
......
......@@ -1172,6 +1172,7 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
if (this.virtualDelegate.hasDynamicHeight) {
if (!this.virtualDelegate.hasDynamicHeight(item.element)) {
// if the item doesn't have dynamic height, don't check its height again
return 0;
}
} else {
......
......@@ -40,10 +40,6 @@ export class NotebookCellListDelegate implements IListVirtualDelegate<CellViewMo
return element.hasDynamicHeight();
}
getDynamicHeight(element: CellViewModel) {
return element.dynamicHeight || 0;
}
getTemplateId(element: CellViewModel): string {
if (element.cellType === 'markdown') {
return MarkdownCellRenderer.TEMPLATE_ID;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册