Commit 5efc51e5 by Orkhan Alikhanov

Fixed Editor not animating height change correctly

parent c5136171
...@@ -297,7 +297,8 @@ open class TextView: UITextView { ...@@ -297,7 +297,8 @@ open class TextView: UITextView {
} }
UIView.animate(withDuration: 0.15) { UIView.animate(withDuration: 0.15) {
self.superview?.layoutIfNeeded() let v = self.superview as? Editor ?? self
v.superview?.layoutIfNeeded()
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment