Skip to content

Commit 14c634b

Browse files
committed
Merge pull request raulriera#39 from michallaskowski/fix_hoshiplaceholder
Fix Hoshi placeholder placement
2 parents d72c168 + b91d9cc commit 14c634b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TextFieldEffects/TextFieldEffects/HoshiTextField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ import UIKit
8080
layer.addSublayer(inactiveBorderLayer)
8181
layer.addSublayer(activeBorderLayer)
8282
addSubview(placeholderLabel)
83-
84-
activePlaceholderPoint = CGPoint(x: placeholderLabel.frame.origin.x, y: placeholderLabel.frame.origin.y - placeholderLabel.frame.size.height - placeholderInsets.y)
8583
}
8684

8785
override public func animateViewsForTextEntry() {
@@ -160,6 +158,8 @@ import UIKit
160158
}
161159
placeholderLabel.frame = CGRect(x: originX, y: textRect.height/2,
162160
width: placeholderLabel.bounds.width, height: placeholderLabel.bounds.height)
161+
activePlaceholderPoint = CGPoint(x: placeholderLabel.frame.origin.x, y: placeholderLabel.frame.origin.y - placeholderLabel.frame.size.height - placeholderInsets.y)
162+
163163
}
164164

165165
// MARK: - Overrides

0 commit comments

Comments
 (0)