capacitor-community / privacy-screen

⚡️ Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.
MIT License
87 stars 23 forks source link

fix(ios): rescale web view on orientation change #62

Closed TripShade closed 1 year ago

TripShade commented 1 year ago

When device orientation changes, Webview loses its position and sizing on the screen.

robingenz commented 1 year ago

Please post a screen recording that shows the problem.

TripShade commented 1 year ago

Please post a screen recording that shows the problem.

Il mail it to you.

TripShade commented 1 year ago

Somehow WebView gets a frame of CGFloat width 0.0 and height 0.0 after screen resize i have no idea how or where. After noticing this and setting it back to UIScreen width and height it seems te be fine.