Commit 211e4b48 by Orkhan Alikhanov

Fixed TextField placeholder was smaller than minimumTextHeight

parent 3ae38a31
......@@ -586,6 +586,7 @@ fileprivate extension TextField {
let w = bounds.width - leftPadding - textInsets.right
var h = placeholderLabel.sizeThatFits(CGSize(width: w, height: .greatestFiniteMagnitude)).height
h = min(h, bounds.height - textInsets.top - textInsets.bottom)
h = max(h, minimumTextHeight)
placeholderLabel.bounds.size = CGSize(width: w, height: h)
......
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