Adjust animation

This commit is contained in:
Isaac 2024-10-01 22:13:33 +08:00
parent 0e1998df1e
commit c74548e76b

View File

@ -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)