Search code examples
javascriptioscordovacordova-plugins

Cordova camera resize on orientation change


When taking a photo via navigator.camera.getPicture and changing the device's orientation inside the photo interface, the webview's viewport doesn't resize upon returning. The blank space is not part of the HTML document, so internal resizing in the app doesn't help.

A plugin bug? Is there a way to force resizing on the cordova / webview layer?

That's the result of starting vertical, opening the photo interface, turning into horizontal and returning to the app: enter image description here


Solution

  • This was just fixed with [email protected]