Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Viewport-fit cover or auto?

$
0
0

@sakotturi wrote:

I have an ionic v5 app deployed to the web. I created a link to it in my instagram bio. My webapp then renders in instagram’s webview.

It initially loads properly with all of the content inside the viewport (under the top header and above the bottom navbar of their webview) but if you scroll around, it causes the ionic app content to extend below and above the header and nav footer hiding my webapp’s contents…

When a customer adds an item to their cart, I have a banner come up at the bottom, this was being completely hidden by instagram’s bottom navbar.

I was able to “fix” this by changing my index.html’s viewport-fit=cover to viewport-fit=auto

my code is now:

<meta name="viewport" content="viewport-fit=auto, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />

But I’m guessing there’s some other features the Ionic team has built to make them choose to use cover instead? Could y’all chime in on why this decision was made?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>