mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix swipe to reply icon in tooltip
This commit is contained in:
parent
5b1a87d514
commit
f628ae8d6b
@ -31,7 +31,7 @@ final class UndoOverlayControllerNode: ViewControllerTracingNode {
|
|||||||
private let effectView: UIView
|
private let effectView: UIView
|
||||||
|
|
||||||
private let animationBackgroundColor: UIColor
|
private let animationBackgroundColor: UIColor
|
||||||
|
|
||||||
private var originalRemainingSeconds: Int
|
private var originalRemainingSeconds: Int
|
||||||
private var remainingSeconds: Int
|
private var remainingSeconds: Int
|
||||||
private var timer: SwiftSignalKit.Timer?
|
private var timer: SwiftSignalKit.Timer?
|
||||||
@ -261,7 +261,12 @@ final class UndoOverlayControllerNode: ViewControllerTracingNode {
|
|||||||
let firstLayout = self.validLayout == nil
|
let firstLayout = self.validLayout == nil
|
||||||
self.validLayout = layout
|
self.validLayout = layout
|
||||||
|
|
||||||
let leftInset: CGFloat = 50.0
|
var leftInset: CGFloat = 50.0
|
||||||
|
if let animationNode = self.animationNode, let iconSize = animationNode.preferredSize() {
|
||||||
|
if iconSize.width > leftInset {
|
||||||
|
leftInset = iconSize.width - 8.0
|
||||||
|
}
|
||||||
|
}
|
||||||
let rightInset: CGFloat = 16.0
|
let rightInset: CGFloat = 16.0
|
||||||
var contentHeight: CGFloat = 20.0
|
var contentHeight: CGFloat = 20.0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user