mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
[Temp]
This commit is contained in:
@@ -18,7 +18,7 @@ public class NavigationBarSearchContentNode: NavigationBarContentNode {
|
||||
public var placeholderHeight: CGFloat?
|
||||
private var disabledOverlay: ASDisplayNode?
|
||||
|
||||
public private(set) var expansionProgress: CGFloat = 1.0
|
||||
public var expansionProgress: CGFloat = 1.0
|
||||
|
||||
public var additionalHeight: CGFloat = 0.0
|
||||
|
||||
@@ -103,7 +103,7 @@ public class NavigationBarSearchContentNode: NavigationBarContentNode {
|
||||
|
||||
private func updatePlaceholder(_ progress: CGFloat, size: CGSize, leftInset: CGFloat, rightInset: CGFloat, transition: ContainedViewLayoutTransition) {
|
||||
let padding: CGFloat = 10.0
|
||||
let baseWidth = self.bounds.width - padding * 2.0 - leftInset - rightInset
|
||||
let baseWidth = size.width - padding * 2.0 - leftInset - rightInset
|
||||
|
||||
let fieldHeight: CGFloat = 36.0
|
||||
let fraction = fieldHeight / self.nominalHeight
|
||||
|
||||
Reference in New Issue
Block a user