From 9223c2adc9060e7bd3fa867422d352f29cd2e997 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Mon, 11 Sep 2023 11:50:32 +0200 Subject: [PATCH] fix(ui): fix for clickmap height resizer --- frontend/app/player/web/Screen/Screen.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/player/web/Screen/Screen.ts b/frontend/app/player/web/Screen/Screen.ts index 2e11bfc66..a7edc82e2 100644 --- a/frontend/app/player/web/Screen/Screen.ts +++ b/frontend/app/player/web/Screen/Screen.ts @@ -209,9 +209,11 @@ export default class Screen { posStyles = { height: height + 'px' } break; case ScaleMode.AdjustParentHeight: + // we want to scale the document with true height so the clickmap will be scrollable + const usedHeight = this.document?.body.offsetHeight && this.document?.body.offsetHeight > height ? this.document.body.offsetHeight + 'px' : height + 'px' this.scaleRatio = offsetWidth / width translate = "translate(-50%, 0)" - posStyles = { top: 0, height: height + 'px', } + posStyles = { top: 0, height: usedHeight, } break; }