Skip to content

Commit

Permalink
auto-size window
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Jan 6, 2022
1 parent 1c749ed commit 12a8a5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class PotatoOrNotApplication extends FormApplication {
template: `modules/potato-or-not/templates/potato-template.html`,
classes: ["dialog"],
width: 900,
height: 425,
height: "auto",
});
}

Expand All @@ -303,6 +303,7 @@ class PotatoOrNotApplication extends FormApplication {
super.activateListeners(html);
let btn = html.find(".potato-level-container");
btn.click(this._selectedPotatoLevel.bind(this));
setTimeout(() => this.setPosition(), 50);
}

/* -------------------------------------------- */
Expand Down

0 comments on commit 12a8a5e

Please sign in to comment.