diff --git a/code/smartphone.js b/code/smartphone.js index 8ed9c445..43ec892f 100644 --- a/code/smartphone.js +++ b/code/smartphone.js @@ -174,8 +174,15 @@ window.runOnSmartphonesAfterBoot = function() { addHook('portalSelected', window.setAndroidPermalink); } + + // for some reason, leaflet misses the WebView size being set at startup on IITC Mobile + // create a short timer that checks for this issue + setTimeout (function() { map.invalidateSize(); }, 0.2*1000); + } + + window.setAndroidPermalink = function() { var c = window.map.getCenter(); var lat = Math.round(c.lat*1E6)/1E6;