mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 13:13:55 +00:00
Fix search bar tokens inset when input is dismissed
This commit is contained in:
parent
63e601fec0
commit
7a8d5e27f2
@ -467,6 +467,10 @@ private class SearchBarTextField: UITextField, UIScrollViewDelegate {
|
||||
rect.origin.x += prefixOffset
|
||||
rect.size.width -= prefixOffset
|
||||
}
|
||||
if !self.tokensWidth.isZero && self.scrollView == nil {
|
||||
rect.origin.x += self.tokensWidth
|
||||
rect.size.width -= self.tokensWidth
|
||||
}
|
||||
rect.size.width = max(rect.size.width, 10.0)
|
||||
return rect
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user