Skip to content

Commit 1767c31

Browse files
committed
Only recalulateTypingAttributes for alignment on change
1 parent bd05488 commit 1767c31

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Aztec/Classes/TextKit/TextView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,9 @@ open class TextView: UITextView {
341341

342342
override open var textAlignment: NSTextAlignment {
343343
didSet {
344-
recalculateTypingAttributes()
344+
if (textAlignment != oldValue) {
345+
recalculateTypingAttributes()
346+
}
345347
}
346348
}
347349

0 commit comments

Comments
 (0)