Skip to content

Label exceeds VerticalStackLayout width when WidthRequest is set on iOS/Mac #34531

@Dhivya-SF4094

Description

@Dhivya-SF4094

Description

On iOS and Mac Catalyst, when a fixed WidthRequest is applied to a VerticalStackLayout, a Label inside the layout can render text outside the layout bounds instead of wrapping within the constrained width.

The Label uses LineBreakMode="WordWrap" and should wrap within the width constraint of the parent layout, but the text overflows beyond the layout width.

Steps to Reproduce

  1. Run the attached sample in iOS/Mac
  2. Look at the output label text exceeds the VerticalStacklayout.

LabelSampleRepo.zip

Link to public reproduction project repository

No response

Version with bug

10.0.50

Is this a regression from previous behavior?

No, this is something new, Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-labelLabel, Spanpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iosplatform/macosmacOS / Mac Catalysts/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