mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix search bar tokens inset when input is dismissed
This commit is contained in:
parent
63e601fec0
commit
7a8d5e27f2
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue