From bdf8d6008dae2f9b7b47494ce5dca4b204367016 Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Fri, 8 Dec 2023 11:40:50 +0000 Subject: [PATCH] =?UTF-8?q?[=E2=9A=A1]=20Stopped=20resize=20according=20to?= =?UTF-8?q?=20`canResize`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/structures/FlowWindow.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/structures/FlowWindow.ts b/src/structures/FlowWindow.ts index dff5c78..680844a 100644 --- a/src/structures/FlowWindow.ts +++ b/src/structures/FlowWindow.ts @@ -106,6 +106,10 @@ class FlowWindow { if (config.canResize === undefined || config.canResize === null) config.canResize = true + if (config.canResize === false) { + this.element.style.resize = 'none'; + } + this.element.style.width = `${config.width ?? 300}px` this.element.style.height = `${config.height ?? 200}px`