Screen not using the full width by default when on locked device orientation #27741
Labels
area-blazor
Blazor Hybrid / Desktop, BlazorWebView
platform/iOS 🍎
s/needs-attention
Issue has more information and needs another look
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
Hi,
I'm currently struggling with a MAUI Blazor Hybrid project...
If I lock the device orientation to landscape only then the screen is not using the full width (Simulated with iPhone 15 iOS 17.5 but also on a real iPhone device XR iOS 18.2.1).
It occures only on iOS.
What's really interesting is that if you allow portrait and then rotate the device to landscape then the width uses the full screen.
If you paint the background of the body to some other color than white you can see that the white area is part of the HTML-View
Edit: Add link to public reproduction project repository
Steps to Reproduce
Link to public reproduction project repository
https://github.com/LennyIncrement/maui-27741
Version with bug
9.0.14 SR1.4
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17.X, iOS 18.X
Did you find any workaround?
Give the html, body element the full width
html, body { width: 100vw; }
Relevant log output
The text was updated successfully, but these errors were encountered: