- bug fixing

This commit is contained in:
Dhaval Thanki
2017-04-14 16:30:30 +05:30
parent 7c1d6bc4ae
commit 7a6cd5efbb
+1 -1
View File
@@ -295,7 +295,7 @@ public class DTTextField: UITextField {
let textOriginalY = (rect.height - fontHeight) / 2.0
var textY = topInset - textOriginalY
if textY < 0 { textY = topInset }
if textY < 0 && !showErrorLabel { textY = topInset }
return CGRect(x: x, y: ceil(textY), width: rect.size.width - paddingX, height: rect.height)
}