html - Rotate landscape to make div full screen (using jQuery) -


when changing portrait landscape on iphone using safari following code executes:

$(window).resize(function() {     if (window.innerwidth > window.innerheight) {         $("#map").css("position", "absolute");         $("#map").css("top", "0");         $("#map").css("left", "0");         $("#map").width(window.innerwidth);         $("#map").height(window.innerheight);     } }); 

my issue map div seems fill half screen despite asking fill whole screen? know why might happening? been scratching head while on one, can't seem find answers.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -