xamarin/Xamarin.Forms

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

Open

#8,158 opened on Oct 22, 2019

 (4 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
e/4 :clock4:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

  • Version with issue: 4.3
  • Last known good version: -
  • IDE: Latest stable VS for Mac Enterprise
  • Platform Target Frameworks:
    • iOS: Tested with iOS 13.1

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...

Contributor guide