patch for kiosk drawing off screen
This commit is contained in:
parent
12d068d740
commit
cc05aafb95
1 changed files with 1 additions and 2 deletions
|
|
@ -455,10 +455,9 @@ const resize = (force = false) => {
|
||||||
const bottomBar = document.querySelector('#divTwcBottom');
|
const bottomBar = document.querySelector('#divTwcBottom');
|
||||||
const bottomBarHeight = bottomBar ? bottomBar.offsetHeight : 40; // fallback to ~40px
|
const bottomBarHeight = bottomBar ? bottomBar.offsetHeight : 40; // fallback to ~40px
|
||||||
const totalHeight = 480 + bottomBarHeight;
|
const totalHeight = 480 + bottomBarHeight;
|
||||||
const scaledHeight = totalHeight * scale; // Height after scaling
|
|
||||||
|
|
||||||
wrapper.style.setProperty('width', `${wrapperWidth}px`);
|
wrapper.style.setProperty('width', `${wrapperWidth}px`);
|
||||||
wrapper.style.setProperty('height', `${scaledHeight}px`); // Use scaled height to eliminate gap
|
wrapper.style.setProperty('height', `${totalHeight}px`);
|
||||||
applyScanlineScaling(scale);
|
applyScanlineScaling(scale);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue