Cordoba inappbrowser fits the screen image (ios)

Is it possible to place an image on the screen in cordova?

If I use ref.executeScript to set the image width to 100% of the screen, it gets set, but the page size is larger than the screen and I can scroll to the 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; for (var i = 0; i < imageResize.length; i++) {imageResize[i].style.width = screenWidth + 'px';}"  });
      });

      

+3
ios cordova inappbrowser


source to share


No one has answered this question yet

Check out similar questions:

868
Xcode error "Could not find developer disk image"
32
scalable mobile web content using viewport meta tag
ten
UIImageView / UIScrollView forcing fixed aspect ratio to fit screen
8
fabric.js resize canvas to fit screen
3
iOS / Cordova: InAppBrowser not working
1
xcode ios - how to make image fit different screen sizes
0
Cordova inAppBrowser
0
Cordova InAppBrowser stuck loading
0
Cordova App scaling issue in ios emulator
0
Cordova android inAppBrowser inside inAppBrowser



All Articles
Loading...
X
Show
Funny
Dev
Pics