Skip to content

Commit 6a39bfc

Browse files
authored
Merge pull request #1228 from wordpress-mobile/gutenberg_alignment
Recalculate typing attributes on alignment update
2 parents 960e4f7 + 1767c31 commit 6a39bfc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Aztec/Classes/TextKit/TextView.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,14 @@ open class TextView: UITextView {
339339
}
340340
}
341341

342+
override open var textAlignment: NSTextAlignment {
343+
didSet {
344+
if (textAlignment != oldValue) {
345+
recalculateTypingAttributes()
346+
}
347+
}
348+
}
349+
342350

343351
/// This property returns the Attributes associated to the Extra Line Fragment.
344352
///

0 commit comments

Comments
 (0)