mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-23 12:09:30 -07:00
fix full screen centering on chrome #139
This commit is contained in:
@@ -559,7 +559,9 @@ const resize = (force = false) => {
|
|||||||
// Apply shared properties to the target element
|
// Apply shared properties to the target element
|
||||||
targetElement.style.setProperty('transform', `scale(${scale})`, 'important');
|
targetElement.style.setProperty('transform', `scale(${scale})`, 'important');
|
||||||
targetElement.style.setProperty('transform-origin', transformOrigin, 'important');
|
targetElement.style.setProperty('transform-origin', transformOrigin, 'important');
|
||||||
targetElement.style.setProperty('width', `${wrapperWidth}px`, 'important');
|
// the width of the target element does not change it is the fixed width of the 4:3 display which is then scaled
|
||||||
|
// the wrapper adds margins and padding to achieve widescreen
|
||||||
|
// targetElement.style.setProperty('width', `${wrapperWidth}px`, 'important');
|
||||||
targetElement.style.setProperty('height', `${wrapperHeight}px`, 'important');
|
targetElement.style.setProperty('height', `${wrapperHeight}px`, 'important');
|
||||||
targetElement.style.setProperty('position', 'absolute', 'important');
|
targetElement.style.setProperty('position', 'absolute', 'important');
|
||||||
targetElement.style.setProperty('left', leftPosition, 'important');
|
targetElement.style.setProperty('left', leftPosition, 'important');
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -341,13 +341,14 @@ body {
|
|||||||
// overflow: hidden;
|
// overflow: hidden;
|
||||||
background-image: url(../images/backgrounds/1.png);
|
background-image: url(../images/backgrounds/1.png);
|
||||||
transform-origin: 0 0;
|
transform-origin: 0 0;
|
||||||
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wide #container {
|
.wide #container {
|
||||||
padding-left: 107px;
|
padding-left: 107px;
|
||||||
padding-right: 107px;
|
padding-right: 107px;
|
||||||
|
background: url(../images/backgrounds/1-wide.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background: url(../images/backgrounds/1-wide.png)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#divTwc:fullscreen #container,
|
#divTwc:fullscreen #container,
|
||||||
|
|||||||
Reference in New Issue
Block a user