Skip to content

Commit

Permalink
Merge pull request #1938 from wordpress-mobile/issue/1916_fix_align_i…
Browse files Browse the repository at this point in the history
…ssues

Issue/1916 fix align issues
  • Loading branch information
SergioEstevao authored Feb 20, 2020
2 parents e3fe836 + f6de8f8 commit ffda54d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* [Android] Fix issue preventing correct placeholder image from displaying during image upload
* [iOS] Fix diplay of large numbers on ordered lists
* Fix issue where adding emojis to the post title add strong HTML elements to the title of the post
* [iOS] Fix issue where alignment of paragraph blocks were not being respected whem splitting the paragraph or reading from the original Post content.

1.22.0
------
Expand Down
12 changes: 8 additions & 4 deletions react-native-aztec/ios/RNTAztecView/RCTAztecView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ class RCTAztecView: Aztec.TextView {
}

override var textAlignment: NSTextAlignment {
didSet {
super.textAlignment = textAlignment
defaultParagraphStyle.alignment = textAlignment
placeholderLabel.textAlignment = textAlignment
set {
super.textAlignment = newValue
defaultParagraphStyle.alignment = newValue
placeholderLabel.textAlignment = newValue
}

get {
return super.textAlignment
}
}

Expand Down

0 comments on commit ffda54d

Please sign in to comment.