mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-23 10:59:54 +02:00
Fix top center and top right positioning in some situations (#2108)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
This commit is contained in:
parent
0471164456
commit
8d94d5f2ea
7 changed files with 53 additions and 19 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue