提交 f03b305c 编写于 作者: R Rob Lourens

Settings editor - avoid triggering reflow in layout()

上级 ea6d8a70
......@@ -907,7 +907,7 @@ export class SettingsEditor2 extends BaseEditor {
}
private layoutTrees(dimension: DOM.Dimension): void {
const listHeight = dimension.height - (DOM.getDomNodePagePosition(this.headerContainer).height + 11 /*padding*/);
const listHeight = dimension.height - (95 + 11 /* header height + padding*/);
const settingsTreeHeight = listHeight - 14;
this.settingsTreeContainer.style.height = `${settingsTreeHeight}px`;
this.settingsTree.layout(settingsTreeHeight, 800);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册