From c74548e76b2c29f9060acfb3296efe3e1641b36b Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Tue, 1 Oct 2024 22:13:33 +0800 Subject: [PATCH] Adjust animation --- .../Sources/VideoChatParticipantsComponent.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/submodules/TelegramCallsUI/Sources/VideoChatParticipantsComponent.swift b/submodules/TelegramCallsUI/Sources/VideoChatParticipantsComponent.swift index 49b478b9d3..7b98a0b136 100644 --- a/submodules/TelegramCallsUI/Sources/VideoChatParticipantsComponent.swift +++ b/submodules/TelegramCallsUI/Sources/VideoChatParticipantsComponent.swift @@ -1398,7 +1398,10 @@ final class VideoChatParticipantsComponent: Component { environment: {}, containerSize: itemLayout.expandedGrid.itemContainerFrame().size ) - let expandedThumbnailsFrame = CGRect(origin: CGPoint(x: 0.0, y: expandedGridItemContainerFrame.height - expandedThumbnailsSize.height), size: expandedThumbnailsSize) + var expandedThumbnailsFrame = CGRect(origin: CGPoint(x: 0.0, y: expandedGridItemContainerFrame.height - expandedThumbnailsSize.height), size: expandedThumbnailsSize) + if expandedVideoState.isUIHidden { + expandedThumbnailsFrame.origin.y += expandedThumbnailsSize.height + } if let expandedThumbnailsComponentView = expandedThumbnailsView.view { if expandedThumbnailsComponentView.superview == nil { self.expandedGridItemContainer.addSubview(expandedThumbnailsComponentView)