Skip to content

Commit bd05488

Browse files
committed
Recalculate typing attributes on alignment update
1 parent 53ccd95 commit bd05488

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Aztec/Classes/TextKit/TextView.swift

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

342+
override open var textAlignment: NSTextAlignment {
343+
didSet {
344+
recalculateTypingAttributes()
345+
}
346+
}
347+
342348

343349
/// This property returns the Attributes associated to the Extra Line Fragment.
344350
///

0 commit comments

Comments
 (0)