From 111bdb8558f17f190145fc66f0b6833c9f97132c Mon Sep 17 00:00:00 2001 From: Ali <> Date: Sat, 11 Jun 2022 21:54:45 +0100 Subject: [PATCH] Fix attached content text positioning --- .../Sources/ChatMessageAttachedContentNode.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/submodules/TelegramUI/Sources/ChatMessageAttachedContentNode.swift b/submodules/TelegramUI/Sources/ChatMessageAttachedContentNode.swift index 8700070dd1..77fe6da306 100644 --- a/submodules/TelegramUI/Sources/ChatMessageAttachedContentNode.swift +++ b/submodules/TelegramUI/Sources/ChatMessageAttachedContentNode.swift @@ -980,9 +980,11 @@ final class ChatMessageAttachedContentNode: ASDisplayNode { if let statusSizeAndApply = statusSizeAndApply { var statusFrame = CGRect(origin: CGPoint(x: strongSelf.textNode.frame.minX, y: strongSelf.textNode.frame.maxY), size: statusSizeAndApply.0) if let imageFrame = imageFrame { - statusFrame.origin.y = max(statusFrame.minY, imageFrame.maxY + 2.0) - if statusFrame.height == 0.0 { - statusFrame.origin.y += 14.0 + if statusFrame.maxY < imageFrame.maxY + 10.0 { + statusFrame.origin.y = max(statusFrame.minY, imageFrame.maxY + 2.0) + if statusFrame.height == 0.0 { + statusFrame.origin.y += 14.0 + } } } if strongSelf.statusNode.supernode == nil {