Change scrolling for item sheet

=> content to the sheet body only
This commit is contained in:
Vincent Vandemeulebrouck 2021-05-10 19:14:05 +02:00
parent 73099454b7
commit 2c7b37db04

View File

@ -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;
}