mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix search bar text inset
This commit is contained in:
@@ -480,7 +480,7 @@ private class SearchBarTextField: UITextField, UIScrollViewDelegate {
|
||||
rect.origin.x += prefixOffset
|
||||
rect.size.width -= prefixOffset
|
||||
}
|
||||
if !self.tokensWidth.isZero && self.scrollView == nil {
|
||||
if !self.tokensWidth.isZero && self.scrollView?.superview == nil {
|
||||
rect.origin.x += self.tokensWidth
|
||||
rect.size.width -= self.tokensWidth
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user