Skip to content

StackLayout Throws Exception on Windows When Orientation Is Set with HeightRequest of 0, Padding, and Opposing Alignment #29919

@SanjaySF4372

Description

@SanjaySF4372

Description

In .NET MAUI on Windows, setting HeightRequest="0" with padding as some value on stack layouts throws exceptions ,when alignment is set in the opposite direction of the layout. This issue does not occur on other platforms.

Steps to Reproduce

1.In HorizontalStackLayout set padding , height as 0 and VerticalOptions as Center.
2.In VerticalStackLayout set padding , height as 0 and HorizontalOptions as Center.

SampleApp.zip

Link to public reproduction project repository

Version with bug

9.0.50 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions