Skip to content

ScrollView and VerticalStackLayout do not resize themselves on iOS #8820

Closed

Description

Description

ScrollView and VerticalStackLayout do not resize themselves on iOS as they do on Android.

On toggling a control that is initially visible to be hidden. There is a blank space left where the control used to be.

If the control is set to be hidden initially and then toggled to be visible. The VerticalStackLayout and ScrollView do not resize to take into account the size of the now visible control.

Screenshot 2022-07-18 at 18 06 17

Steps to Reproduce

Clone repo https://github.com/ammar-madni/MauiResizeIssueIOS

Run on android to see intended result.

Run on iOS to see the issue on iOS.

Version with bug

6.0.408 (current)

Last version that worked well

6.0.312

Affected platforms

iOS

Affected platform versions

iOS 15.5

Did you find any workaround?

I have added a margin to the bottom of the last element in VStack. This margin gets used up when the Hidden Control is toggled to be visible.

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions