Hack for firefox52 weird ui sizing thing.

Made only mission available basa's birthday.
This commit is contained in:
fire bingo 2018-05-23 19:24:44 -07:00
부모 d51c8936e8
커밋 d101cd9ff0
2개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

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

파일 보기

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