diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts index c6932096c..9d9d536be 100644 --- a/app/src/layout/Wnd.ts +++ b/app/src/layout/Wnd.ts @@ -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 = '
'; if (parentType === "left" || parentType === "right" || parentType === "top" || parentType === "bottom") { dragHTML = ""; diff --git a/app/src/layout/index.ts b/app/src/layout/index.ts index 00c7910d8..824a7596a 100644 --- a/app/src/layout/index.ts +++ b/app/src/layout/index.ts @@ -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; } }