cordova inappbrowser fit image on screen (ios) -
is there possibility fit image on screen in cordova inapprowser?
if use ref.executescript set image width 100% of screen it's fitted size of page still larger screen , can scroll left
var ref = window.open(path, param, "location=no,suppressesincrementalrendering=yes,enableviewportscale=yes"); ref.addeventlistener('loadstop', function() { ref.executescript({ code: "var imageresize = document.queryselectorall('img'); var screenwidth = window.innerwidth; (var = 0; < imageresize.length; i++) {imageresize[i].style.width = screenwidth + 'px';}" }); });
Comments
Post a Comment