Hack for firefox52 weird ui sizing thing.

Made only mission available basa's birthday.
This commit is contained in:
firebingo 2018-05-23 19:24:44 -07:00
parent d51c8936e8
commit d101cd9ff0
2 changed files with 9 additions and 2 deletions

View file

@ -71,6 +71,9 @@ function onAllLoaded(success) {
onWindowResize();
window.addEventListener("resize", onWindowResize);
checkQueryParameters();
//Firefox52 hack for weird sizing thing.
document.body.style.zoom = 1.0000001;
setTimeout(function(){document.body.style.zoom = 1;},50);
}, 0);
}
@ -120,7 +123,8 @@ function buildMissionSelectList() {
} else {
let m = utage.missionsList[i];
//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;
}
opt.setAttribute('value', m.MstId);
@ -354,5 +358,8 @@ function onWindowResize(event) {
let res = commonFunctions.getNewResolution(baseDimensions, screenw, screenh, topContainerHeight);
player.updateResolution(res);
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);
}