xamarin/Xamarin.Forms

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

Aperta

#8158 aperta il 22 ott 2019

 (4 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/4 :clock4:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor