Hi Vincenzo,
Try adding `viewport-fit=cover` to the content of your viewport meta tag. Like this:
<meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes,viewport-fit=cover" name="viewport">
This allows the content to be rendered over the iOS safe area margins on the top and bottom of the display. After adding this, if some element is being hidden by the notch at the top of the screen, or by the home indicator line at the bottom, you can access the height of the safe area margins to relocate this element with CSS. Here are some examples of property values you could assign to that element:
padding-top: env(safe-area-inset-top); /* Adds a top padding with the top safe area inset height (notch) */ padding-bottom: env(safe-area-inset-bottom); /* Adds a bottom padding with the bottom safe area inset height (home indicator) */ padding-top: calc(12px + env(safe-area-inset-top)); /* Adds a top padding of 12 pixels plus the top safe area inset height */
Please let us know if this solves your issue.
Thank you.
- Damian
Thanks for the answer but nothing to do, I had already entered this line of code but nothing. I have always the same problem. I also noticed that, I don't know why, but the radar is ovalized vertically
but the associated css code is this:
.radarContainer_left { position: absolute; top: 85px; left: 0px; width: 100px; height: 100px; }
If i add navigation controller, it's all ok, but i don't want lose top part of screen to add navigation bar. I don't know if I'm doing something wrong, can you help me? This is the Git repository: https://github.com/Pische/AdeonAR
Thank you,
Vincenzo
Hi Vincenzo,
The settings I mentioned require WebKit to work. Our `WTArchitectView` does not use WebKit by default, and while we have a `shouldUseWebKit` flag in the APIs of our other extensions, unfortunately this is missing in the Xamarin API right now.
Sorry for the inconvenience. We are working on this, and aim to add this WebKit setting to our Xamarin API in the next SDK release.
In the meantime, I would suggest that you use a navigation controller as you mentioned before, because the top Safe Area inset/notch is already handled natively by the navigation bar. Once we add this WebKit option to the Xamarin API, you will be able to enable it and the HTML/CSS lines I mentioned in the previous message should work for you. You could then get rid of the navigation controller if you wish.
Thank you.
- Damian
Hi,
after the latest update (8.9.0) the problem has been solved only for the top. I don't know why but on devices with a 16:9 ratio screen the problem persist on the screen bottom (i've tried also with the Xamarine Example). I have also entered `viewport-fit=cover` to the content. On the iphone 8 the problem does not arise. Do you know how to solve?
Thank you.
- Vincenzo
This is the screenshot made with the original example project:
Hi,
ok thanks, for the moment i will insert the navigation controller waiting for the next SDK release. However, the problem also appears at the bottom. Do you have ideas on how can I resolve momentarily pending the implementation of WebKit?
Thank you,
Vincenzo
Vincenzo Pischetola
Hi, I have a problem with the view on Iphone X. I'm developing with Xamarin and this is what i see when I execute the code similar to your "Multiple Pois" example:
Why HTML is not full screen and i see camer on the top of header in index?
This is the index code (index.html):