html - Change meta viewport and reload page reset scale -
I see the web page's meta-viewer
& lt; Setting in Meta name = "Viewport" content = "width = tool-width, initial-level = 1.0, max-scale = 1.0, user-scalable =" />
Then after reloading of the same page, with a set of cookies, I can see the meta viewport
and lt; Meta name = "change in viewport" content = "width = 1024, user-scalable = yes" />
But for some reasons reloading the page (and so on < Set new viewport content for em> "width = 1024, user-scalable = yes" I see the page scale and zoomed, instead of looking at the whole layout in 1024px.
< P> I'm testing it on iPhone 4S / 5/5 S with iOS 7/8Your Help Thanks in advance!
I have solved. I'm calling the page's reload as a JS
window.location.reload (true);
By doing this, it was scaling the previous VoAport.
window.location = window.location.origin;
This scaling resets. And all work fine.
Comments
Post a Comment