[] Stopped resize according to canResize

This commit is contained in:
ThinLiquid 2023-12-08 11:40:50 +00:00 committed by GitHub
parent f18923ff14
commit bdf8d6008d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,6 +106,10 @@ class FlowWindow {
if (config.canResize === undefined || config.canResize === null) config.canResize = true 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.width = `${config.width ?? 300}px`
this.element.style.height = `${config.height ?? 200}px` this.element.style.height = `${config.height ?? 200}px`