Hi Vincenzo,
This seems to be an issue with the `UIScrollView` in the `WKWebView` that we use to render our content. Its default behaviour is to adjust the size of its content insets to the safe area, which is taking priority over the CSS instructions. We will change this.
I am not entirely sure why it "fixes" itself after rotating the device or sending the app to background and opening it again. Maybe the `WKWebView` has not fully processed the `viewport-fit=cover` attribute properly the first time, somehow. The size of its bounds seems fine, and just reloading the same URL doesn't make a difference. It may be a quirk in `WKWebView` itself.
Thanks for letting us know, we will address this problem in a future release. In the meantime, setting the size of the HTML elements in `vh` units instead of percentages is also working for me.
- Damian
Ok, thanks I'll wait for it to be fixed in the next release
Vincenzo Pischetola
Hi,
i'm developing an app with Xamarin and Wikitude. I had already opened a thread for a similar problem (https://support.wikitude.com/support/discussions/topics/5000092655) but after the last update (Wikitude 8.9.1) a strange thing happens on iPhone with 9:16 ratio:
when I open first time the app, the bottom part is moved up like this:
but I don't want this, I need to cover the bottom part. I realized that when i close and reopen the app, the bottom part was fixed:
and this happens every time I open the app for the first time (when i close the app from background). I also made a video that reproduces the problem, you can find it attached on this topic.
These are the files:
index.html
stylesheet.css
ViewController.cs
Can you help me to solve?
Thank you,
Vincenzo