Skip to content

Commit

Permalink
setting stored ui width and height to auto for all forms, not just fl…
Browse files Browse the repository at this point in the history
…oating

required since existing installs will have bad widths saved
  • Loading branch information
DC23 committed Dec 17, 2024
1 parent 8ec922e commit 178931e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/uipanel.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 178931e

Please sign in to comment.