This commit is contained in:
Vanessa 2022-12-01 22:52:36 +08:00
parent 9a523dcb52
commit 35c6827630
2 changed files with 4 additions and 3 deletions

View file

@ -43,9 +43,6 @@ export class Wnd {
this.resize = resize;
this.element = document.createElement("div");
this.element.classList.add("fn__flex-1", "fn__flex");
if (resize === "tb") {
this.element.style.minHeight = "64px"
}
let dragHTML = '<div class="layout-tab-container__drag fn__none"></div>';
if (parentType === "left" || parentType === "right" || parentType === "top" || parentType === "bottom") {
dragHTML = "";

View file

@ -94,6 +94,10 @@ export class Layout {
}
addResize(child);
resizeTabs();
// https://ld246.com/article/1669858316295
if (this.direction === "tb") {
child.element.style.minHeight = "64px"
}
child.parent = this;
}
}