Skip to content

Grid.Margin with SafeAreaInsets.Top on iOS does not align content correctly under the status bar #29932

Closed
@RiyashameedM

Description

@RiyashameedM

Description

When applying the top margin based on SafeAreaInsets.Top, a visible gap remains between the grid and the status bar (as shown in the attached screenshot). The yellow Grid background does not fully extend to the top under the status bar area.

Steps to Reproduce

1.Run the attached sample.
2.Tap on set Margin.

Sample link - SimpleSample 3 1.zip

Expected Behavior : The Grid should align properly below the status bar without a visual gap. The background color should begin immediately after the safe area.

Observed behavior Expected output
visible gap between grid and the status bar
Image Image

Link to public reproduction project repository

No response

Version with bug

10.0.0-preview.5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16 version 18.0

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterplatform/ioss/needs-infoIssue needs more info from the authors/no-recent-activityIssue has had no recent activitys/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions