Skip to content

Commit

Permalink
fix dice panel being squished
Browse files Browse the repository at this point in the history
  • Loading branch information
reonZ committed Dec 4, 2024
1 parent baf92be commit 40b87c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/hud/base/directory.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { runWhenReady } from "module-helpers";
import { ApplicationPosition, runWhenReady } from "module-helpers";
import { BaseRenderOptions, BaseSettings, PF2eHudBase } from "./base";

abstract class PF2eHudDirectory<
Expand Down Expand Up @@ -31,6 +31,11 @@ abstract class PF2eHudDirectory<
this.close();
}
}

protected _updatePosition(position: ApplicationPosition): ApplicationPosition {
Object.assign(this.element.style, { height: "", width: "100%" });
return position;
}
}

export { PF2eHudDirectory };

0 comments on commit 40b87c6

Please sign in to comment.