You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2024. It is now read-only.
When I wrap my UI into a statelayout on iOS, when the page loads first, everything is fine. But when I move the screen from portrait mode to landscape several times, the layout gets cropped.
The content of the statelayout stops filling the screen as it did before.
Steps to Reproduce
Add a statelayout to a grid in a content page
Add views to the statelayout
Move from portrait to landscape several times.
Notice how at some point in time, the layout stops being responsive and crops
This behaviour is more visible in UIs with complex view hirarchy. I made a simple demo that demonstrates this bug
Just launch the demo (iOS), and on the first page, witch from portrait to landscape and notice the issue
Expected Behavior
Moving from portrait to landscape and navigating to and out of the page containing the statelayout on iOS should not make the view crop.
Actual Behavior
The view randomly crops when moving from portrait to landscape and vice versa.
Basic Information
Version with issue: 1.2.0
Last known good version: Null
IDE: VS2019 & Rider
Platform Target Frameworks: iOS
iOS: 14
Workaround
Instead of using the state layout to switch views based on state, use triggers.
Reproduction imagery
When the app is run the first time in portrait mode, here is what I get:
Once I switch from portrait to landscape here is what I get:
Sometimes the crop occurs when I switch back to portrait.