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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -