mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Merge commit '77a592a05c9e599c3dcedb59c1fadc70699bd2e6' into background-task
This commit is contained in:
@@ -283,16 +283,11 @@ class ForwardPrivacyChatPreviewItemNode: ListViewItemNode {
|
||||
let horizontalOrigin: CGFloat = floor(min(max(8.0, sourceRect.midX - contentSize.width / 2.0), layout.size.width - contentSize.width - 8.0))
|
||||
|
||||
strongSelf.tooltipContainerNode.frame = CGRect(origin: CGPoint(x: horizontalOrigin, y: verticalOrigin), size: contentSize)
|
||||
//transition.updateFrame(node: self.containerNode, frame: CGRect(origin: CGPoint(x: horizontalOrigin, y: verticalOrigin), size: contentSize))
|
||||
strongSelf.tooltipContainerNode.relativeArrowPosition = (sourceRect.midX - horizontalOrigin, arrowOnBottom)
|
||||
|
||||
strongSelf.tooltipContainerNode.updateLayout(transition: .immediate)
|
||||
|
||||
let textFrame = CGRect(origin: CGPoint(x: 6.0, y: 17.0), size: textSize)
|
||||
// if transition.isAnimated, textFrame.size != self.textNode.frame.size {
|
||||
// transition.animatePositionAdditive(node: self.textNode, offset: CGPoint(x: textFrame.minX - self.textNode.frame.minX, y: 0.0))
|
||||
// }
|
||||
|
||||
let textFrame = CGRect(origin: CGPoint(x: 6.0, y: 17.0), size: textSize)
|
||||
strongSelf.textNode.frame = textFrame
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user