Emoji pager inset

This commit is contained in:
Ali
2023-11-08 16:36:51 +04:00
parent 945ef52982
commit f847820fa3
2 changed files with 3 additions and 1 deletions

View File

@@ -747,6 +747,8 @@ public final class PagerComponent<ChildEnvironmentType: Equatable, TopPanelEnvir
}
self.bottomPanelHeight = 0.0
contentInsets.bottom = component.contentInsets.bottom
}
contentInsets.top *= topPanelVisibility

View File

@@ -231,7 +231,7 @@ public final class EmojiSelectionComponent: Component {
theme: component.theme,
strings: component.strings,
isContentInFocus: false,
containerInsets: UIEdgeInsets(top: topPanelHeight - 34.0, left: component.sideInset, bottom: component.bottomInset + backspaceButtonInset.bottom + backspaceButtonSize.height + backspaceButtonInset.top, right: component.sideInset),
containerInsets: UIEdgeInsets(top: topPanelHeight - 34.0, left: component.sideInset, bottom: component.bottomInset + 16.0, right: component.sideInset),
topPanelInsets: UIEdgeInsets(top: 0.0, left: 4.0, bottom: 0.0, right: 4.0),
emojiContent: component.emojiContent,
stickerContent: nil,