xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] [iOS] Label with HTML does not respect the TextAlignment properties #8158

Open Sebastian1989101 opened 5 years ago

Sebastian1989101 commented 5 years ago

Description

The HTML is always left oriented even with HorizontalTextAlignment is set to center

Steps to Reproduce

  1. Place a Label with HTML content and set the HorizontalTextAlignment property

Expected Behavior

Should display the text properly

Actual Behavior

Always left oriented

Basic Information

Screenshots

The translator section is a Label with HTML content. It was previously correctly formatted with white text, centered and no misplaced characters. I was using the HtmlLabel plugin previously. Simulator Screen Shot - iPhone 11 - 2019-10-22 at 21 39 30

Reproduction Link

Way too easy to reproduce to make a whole reproduction repo for it...

hartez commented 5 years ago

@Sebastian1989101 Could you tell us which part of your screenshot is using the HTML feature? Or perhaps add some indicator on the screenshot? Or post the markup/code?

Are you talking about the section at the bottom?

Sebastian1989101 commented 5 years ago

@hartez as mentioned directly above the screenshot, the part with the translators (the only outstanding part with the wrong font and color) is the label with the html content.

hartez commented 5 years ago

Repro:

_8157 Repro.zip

hartez commented 5 years ago

See also #8157, #8159, #8156