fix(ui): fix for clickmap height resizer

This commit is contained in:
nick-delirium 2023-09-11 11:50:32 +02:00
parent 9892e63a51
commit 9223c2adc9

View file

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