Fix top center and top right positioning in some situations (#2108)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run

This commit is contained in:
Carlos Fernandez 2026-07-23 03:52:08 -04:00 committed by GitHub
parent 0471164456
commit 8d94d5f2ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 53 additions and 19 deletions

View file

@ -123,10 +123,12 @@ export default class DhAppearance extends foundry.abstract.DataModel {
/** Invoked by the setting when data changes */
handleChange() {
if (this.displayFear) {
if (ui.resources) {
if (this.displayFear === 'hide') ui.resources.close({ allowed: true });
else ui.resources.render({ force: true });
if (ui.resources) {
if (this.displayFear === 'hide') {
ui.resources.close({ allowed: true });
} else {
ui.resources.render({ force: true });
ui.resources.handleOffset();
}
}