From 178931ef0c8d571aea6a6628fbc66eca3bbc1e49 Mon Sep 17 00:00:00 2001 From: DC23 Date: Tue, 17 Dec 2024 15:23:16 +1100 Subject: [PATCH] setting stored ui width and height to auto for all forms, not just floating required since existing installs will have bad widths saved --- src/uipanel.mjs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/uipanel.mjs b/src/uipanel.mjs index e6f54c4..709bb46 100644 --- a/src/uipanel.mjs +++ b/src/uipanel.mjs @@ -51,10 +51,9 @@ export class UIPanel extends HandlebarsApplicationMixin(ApplicationV2) { // if position if out of bounds for current client view, reset to a safe location in the top left if (position) { - if (UIPanel.floatingPanel) { - position.width = 'auto' - position.height = 'auto' - } + position.width = 'auto' + position.height = 'auto' + if ( position.top > window.visualViewport.height || position.left > window.visualViewport.width