mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Small fixes
This commit is contained in:
@@ -205,7 +205,8 @@ private final class TooltipScreenNode: ViewControllerTracingNode {
|
||||
}
|
||||
self.isArrowInverted = invertArrow
|
||||
case .top:
|
||||
backgroundFrame = CGRect(origin: CGPoint(x: sideInset, y: layout.insets(options: [.statusBar]).top + 13.0), size: CGSize(width: layout.size.width - sideInset * 2.0, height: backgroundHeight))
|
||||
let backgroundWidth = containerWidth
|
||||
backgroundFrame = CGRect(origin: CGPoint(x: floor((layout.size.width - backgroundWidth) / 2.0), y: layout.insets(options: [.statusBar]).top + 13.0), size: CGSize(width: backgroundWidth, height: backgroundHeight))
|
||||
}
|
||||
|
||||
transition.updateFrame(node: self.containerNode, frame: backgroundFrame)
|
||||
|
||||
Reference in New Issue
Block a user