remove workaround for position type

This commit is contained in:
Johannes Loher 2021-01-26 21:25:43 +01:00
parent 53f5514db3
commit ba268e4245

View file

@ -63,7 +63,7 @@ export class DS4ItemSheet extends ItemSheet<unknown, DS4Item> {
const position = super.setPosition(options);
if ("find" in this.element) {
const sheetBody = this.element.find(".sheet-body");
const bodyHeight = (position.height as number) - 192; // TODO(types): remove type cast once https://github.com/kmoschcau/foundry-vtt-types/pull/214 is merged
const bodyHeight = position.height - 192;
sheetBody.css("height", bodyHeight);
} else {
console.log("Failure setting position.");