apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 988 forks source link

Camera dismissed (cancelled or otherwise) body re-rendered, padding safe area ignored #952

Closed bkervaski closed 1 year ago

bkervaski commented 4 years ago

Bug Report

Problem

Took me most of the weekend to track this down, thought it was my CSS, it doesn't appear to be.

When you use an INPUT of type file and select an image from the photo gallery, all is good.

However, when you take a photo, a weird phenomena happens after when you finish (either by selecting Cancel or Use Photo, the BODY padding is removed or perhaps the body is re-rendered ignoring what appears to be the env(safe-area) resulting in everything shifting upwards.

For example, if there is a DIV with 100vh rendered, the top of the DIV afterwards would be extended to the top of the screen, behind the status bar/safe area.

Environment, Platform, Device

Can duplicate in all iPhones, latest iOS. However, and this is the rub, it does NOT duplicate in any of the simulators as the camera option isn't available, only on the actual hardware.

Version information

Cordova 9.0.0, Cordova iOS 6.1.0

Checklist

bkervaski commented 4 years ago

Here's a minimalist app to demonstrate the issue, just add platform ios@6.1.0, set your certs, and run on device:

hello.zip

bkervaski commented 4 years ago

Issue appears to be cordova-plugin-statusbar related, using the latest from git (and not the npm version) resolves the problem.

dpogue commented 1 year ago

I've marked this issue as stale because it's been several years with no further comments. If this is still an issue in the latest cordova-ios version and an up-to-date iOS version, please let us know. Otherwise, this issue will be closed.

dpogue commented 1 year ago

Closing as stale.