user3216381
user3216381

Reputation: 75

Capacitor iOS App doesn't scale to full height

I've created an app based on capacitor. Everything runs fine on Android. But on iOS, the capacitor WebView doesn't fill the available height. The following screenshot illustrates the issue. There, I put a white box over the area where the WebView is located. In the WebView, everything works as expected. While debugging the app via Xcode, the following information is returned by the WebView's frame:

CGRect? (origin = (x = 0, y = 0), size = (width = 320, height = 480))

I already tried to resize that frame, but the black areas on the top and bottom remain.

Screenshot

Upvotes: 0

Views: 2202

Answers (1)

Anjali jariwala
Anjali jariwala

Reputation: 445

i don't have much knowledge about capacitor but in Ionic/coredova app viewport-fit=cover use to remove white space

<meta name="viewport" content="initial-scale=1,user-scalable=no, width=device-width, height=device-height, viewport-fit=cover">

I have found this solution from below link: Remove White space

Upvotes: 2

Related Questions