Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Fix RTL on Labels with FormattedText and/or LineHeight #13197

Merged
merged 16 commits into from
Jan 27, 2021
Merged

Conversation

rachelkang
Copy link
Contributor

@rachelkang rachelkang commented Dec 18, 2020

Description of Change

Fix RTL so that it works on labels with FormattedText and/or LineHeight
Fix RTL so that it works on labels with other previously incompatible properties as well (i.e. FontAttributes, FontSize, LineHeight, TextColor, TextTransform, TextType, VerticalTextAlignment)

Issues Resolved

Platforms Affected

  • iOS

Behavioral/Visual Changes

Labels with RTL (and with FormattedText and/or LineHeight) are properly right-aligned now

Before/After Screenshots

BEFORE AFTER
Label w/ RTL and FormattedText Simulator Screen Shot - iPod touch (7th generation) - 2021-01-15 at 14 57 36 Simulator Screen Shot - iPod touch (7th generation) - 2021-01-15 at 14 56 26
Label w/ RTL and LineHeight Simulator Screen Shot - iPod touch (7th generation) - 2020-12-18 at 16 38 37 Simulator Screen Shot - iPod touch (7th generation) - 2020-12-18 at 16 43 49

Testing Procedure

  • Run Issue3311
  • Run Issue12743
  • Make sure RTLLabelWithFormattedTextWorks and RTLLabelWithLineHeightWorks tests are passing

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@rmarinho
Copy link
Member

Hey @rachelkang the project isn't building, seems something wrong in the csproj

@samhouts samhouts added 3.1.0 regression on 3.1.0 i/regression t/bug 🐛 a/listview Problems with the ListView/TableView labels Jan 8, 2021
Copy link
Contributor

@jsuarezruiz jsuarezruiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UITest is failing:
Captura de pantalla 2021-01-14 a las 17 08 23
Could you take a look?

Fix RTL issue that arises when certain text properties are set on a Label w/ RTL and FormattedText (i.e. FontAttributes, FontSize, LineHeight, TextColor, TextTransform, etc)
TextType on FormattedText labels causes app crash. This separate issue will be fixed in a follow-up PR
@rachelkang
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mohsen-mohamed
Copy link

Arabic text is reversed "mirrored" if i used it as EmptyView for CollectionView
this was an old bug and fixed some months ago bug it's now bugged again after this update

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
6 participants