-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
area-controls-labelLabel, SpanLabel, Spanpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androidplatform/iosplatform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
When using the .NET MAUI Label control with TextType="Html" property, the LineHeight property does not take effect when changed during runtime. This behavior is inconsistent with the Label in plain text mode where line height changes are applied immediately.
Screen.Recording.2025-05-26.at.6.01.09.PM.mov
Steps to Reproduce
- Run the attached sample FormattedTextPropertiesSample 2.zip
- Select TextType to "Html" using the radio button
- Enter a value (e.g., "2") in the LineHeightEntry field.
- Observe that line height does not update in the Label's HTML rendered text during runtime
- Switch TextType to "plain" using the radio button
- Enter a value (e.g., "2") in the LineHeightEntry field
- Verify line height is applied correctly to plain text
Expected Behavior
The LineHeight property of the Label control should take effect immediately when changed during runtime, regardless of whether the Label's TextType is set to Text or Html.
Actual Behavior
When the Label's TextType is set to Html, changes to the LineHeight property made during runtime are not reflected in the rendered text. The line spacing remains unchanged.
Link to public reproduction project repository
No response
Version with bug
9.0.70 SR7
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
iOS, Android, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Metadata
Metadata
Assignees
Labels
area-controls-labelLabel, SpanLabel, Spanpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androidplatform/iosplatform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working