You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add a floating label text field to a tableview cell and add about 20 or so of them, so that they are off the screen. when tableview reuses cells, it still shows floating label even for the textfields that have no text.
I've fixed the issue, but i'm having issue make a pull request.
This is where the issue is:
override public func layoutSubviews() {
super.layoutSubviews()
if (isFirstResponder() && !hasText()) {
hideFloatingLabel()
} else if(hasText()) {
showFloatingLabelWithAnimation(true)
}
}
If you add a floating label text field to a tableview cell and add about 20 or so of them, so that they are off the screen. when tableview reuses cells, it still shows floating label even for the textfields that have no text.
I've fixed the issue, but i'm having issue make a pull request.
This is where the issue is:
override public func layoutSubviews() {
super.layoutSubviews()
if (isFirstResponder() && !hasText()) {
hideFloatingLabel()
} else if(hasText()) {
showFloatingLabelWithAnimation(true)
}
}
just change it to:
override public func layoutSubviews() {
super.layoutSubviews()
if ((isFirstResponder() && !hasText()) || !hasText()) {
hideFloatingLabel()
} else if(hasText()) {
showFloatingLabelWithAnimation(true)
}
}
Sasa
The text was updated successfully, but these errors were encountered: