Skip to content

[WinUI] StackLayout incorrectly arranges Label with 100 height instead of specified 40 #27468

Open
@RiyashameedM

Description

Description

Description: CustomStackLayout derived from StackLayout is not correctly arranging its child Label. Despite explicitly setting the arrangement height to 40 in the LayoutArrangeChildren method, the Label is being rendered with a height of 100.

Steps to Reproduce

1.Run the sample.

Observed behavior - label is displayed with the height of 100.
Expected behavior - label should be displayed with the height of 40

Link to public reproduction project repository

https://github.com/RiyashameedM/LayoutIssue

Version with bug

9.0.30 SR3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

9.0.30 SR3

Affected platforms

Windows

Affected platform versions

Windows 11

Did you find any workaround?

No

Relevant log output

Activity

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

Metadata

Assignees

No one assigned

    Labels

    area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterp/2Work that is important, but is currently not scheduled for releasepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windows 🪟s/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