Skip to content

Commit

Permalink
- bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
iDhaval committed Apr 14, 2017
1 parent 7c1d6bc commit 7a6cd5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DTTextField/Classes/DTTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7a6cd5e

Please sign in to comment.