Commit 777c8e6c by Orkhan Alikhanov

Fixed issue-1123, TextField is not scrolling

parent aca075ce
...@@ -66,7 +66,7 @@ public protocol TextFieldDelegate: UITextFieldDelegate { ...@@ -66,7 +66,7 @@ public protocol TextFieldDelegate: UITextFieldDelegate {
open class TextField: UITextField { open class TextField: UITextField {
/// Default size when using AutoLayout. /// Default size when using AutoLayout.
open override var intrinsicContentSize: CGSize { open override var intrinsicContentSize: CGSize {
return CGSize(width: bounds.width, height: 32) return CGSize(width: bounds.width, height: max(32, super.intrinsicContentSize.height))
} }
/// A Boolean that indicates if the placeholder label is animated. /// A Boolean that indicates if the placeholder label is animated.
......
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