javascript - Single page app viewport mobile using Foundation -
i using foundation responsive website , have problem mobile devices not scaling viewport when load page via our ng-include. loads new content page , width of page breaks , requires horizontal scrolling.
this doesn't happen in devices such galaxy note 3/4, happen in devices identical resolutions, such iphone 6 plus. have viewport attribute , scaling set:
<meta name="viewport" content="width=device-width, initial-scale=1, target-densitydpi=device-dpi;">
any figuring out why doesn't scale when load new dynamic content single page application appreciated. i'm not sure if it's related (just thought of it), use document equalizer reflow often:
$(document).foundation('equalizer','reflow');
i needed add min , max scale. although didn't test it, imagine needed add max scale, content flowing off screen.
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
Comments
Post a Comment