From: Robert Kaiser Date: Mon, 12 May 2014 01:13:37 +0000 (+0200) Subject: work around Mozilla bug 1001853 with a slight delay in the .resizeAndDraw() call X-Git-Tag: producution~29^2~1 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=14acbcf7790763d4377947b6936c3f067b28646c;p=lantea.git work around Mozilla bug 1001853 with a slight delay in the .resizeAndDraw() call --- diff --git a/js/ui.js b/js/ui.js index c2f64af..7f0afd5 100644 --- a/js/ui.js +++ b/js/ui.js @@ -66,7 +66,8 @@ function postInit(aEvent) { gAction.removeEventListener(aEvent.type, postInit, false); console.log("init done, draw map."); gMapPrefsLoaded = true; - gMap.resizeAndDraw(); + //gMap.resizeAndDraw(); <-- HACK: This triggers bug 1001853, work around with a delay. + window.setTimeout(gMap.resizeAndDraw, 100); gActionLabel.textContent = ""; gAction.style.display = "none"; setTracking(document.getElementById("trackCheckbox"));