From a9cc61b22abeede217e1c4c21e27575850afe749 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Mon, 10 May 2021 19:14:05 +0200 Subject: [PATCH] Change scrolling for item sheet => content to the sheet body only --- module/item-sheet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/item-sheet.js b/module/item-sheet.js index 7a926413..cdecc0b6 100644 --- a/module/item-sheet.js +++ b/module/item-sheet.js @@ -51,8 +51,9 @@ export class RdDItemSheet extends ItemSheet { /** @override */ setPosition(options = {}) { const position = super.setPosition(options); + const sheetHeader = this.element.find(".sheet-header"); const sheetBody = this.element.find(".sheet-body"); - const bodyHeight = position.height - 192; + const bodyHeight = position.height - sheetHeader[0].clientHeight; sheetBody.css("height", bodyHeight); return position; }