Hack for firefox52 weird ui sizing thing.
Made only mission available basa's birthday.
This commit is contained in:
parent
d51c8936e8
commit
d101cd9ff0
@ -72,7 +72,7 @@ body { margin: 0; }
|
|||||||
|
|
||||||
#text-container #dialog-box { box-sizing: border-box; position: absolute; bottom: 0; text-align: left; width: 100%; height: 200px; }
|
#text-container #dialog-box { box-sizing: border-box; position: absolute; bottom: 0; text-align: left; width: 100%; height: 200px; }
|
||||||
|
|
||||||
#text-container #main-ui-img { width: 100%; transition: opacity 0.1s; }
|
#text-container #main-ui-img { width: 100%; height:100%; transition: opacity 0.1s; }
|
||||||
|
|
||||||
#dialog-box { color: white; font-weight: bold; text-shadow: 1px 1px 6px black; transition: opacity 0.1s; }
|
#dialog-box { color: white; font-weight: bold; text-shadow: 1px 1px 6px black; transition: opacity 0.1s; }
|
||||||
|
|
||||||
|
@ -71,6 +71,9 @@ function onAllLoaded(success) {
|
|||||||
onWindowResize();
|
onWindowResize();
|
||||||
window.addEventListener("resize", onWindowResize);
|
window.addEventListener("resize", onWindowResize);
|
||||||
checkQueryParameters();
|
checkQueryParameters();
|
||||||
|
//Firefox52 hack for weird sizing thing.
|
||||||
|
document.body.style.zoom = 1.0000001;
|
||||||
|
setTimeout(function(){document.body.style.zoom = 1;},50);
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +123,8 @@ function buildMissionSelectList() {
|
|||||||
} else {
|
} else {
|
||||||
let m = utage.missionsList[i];
|
let m = utage.missionsList[i];
|
||||||
//Only allowing 3.5 right now
|
//Only allowing 3.5 right now
|
||||||
if(!(m.MstId >= 104001 && m.MstId <= 104008)) {
|
//if(!(m.MstId >= 104001 && m.MstId <= 104008)) {
|
||||||
|
if(m.MstId !== 202070) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
opt.setAttribute('value', m.MstId);
|
opt.setAttribute('value', m.MstId);
|
||||||
@ -354,5 +358,8 @@ function onWindowResize(event) {
|
|||||||
let res = commonFunctions.getNewResolution(baseDimensions, screenw, screenh, topContainerHeight);
|
let res = commonFunctions.getNewResolution(baseDimensions, screenw, screenh, topContainerHeight);
|
||||||
player.updateResolution(res);
|
player.updateResolution(res);
|
||||||
document.getElementById('app-container').style.cssText = `width: ${res.width}px; height: ${res.height}px;`;
|
document.getElementById('app-container').style.cssText = `width: ${res.width}px; height: ${res.height}px;`;
|
||||||
|
//Firefox52 hack for weird sizing thing.
|
||||||
|
document.body.style.zoom = 1.0000001;
|
||||||
|
setTimeout(function(){document.body.style.zoom = 1;},50);
|
||||||
}, 400);
|
}, 400);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user