From 5f3f51c29fb2064d2e5ee7b1292aae613e27c28c Mon Sep 17 00:00:00 2001 From: Cong Pham Date: Tue, 26 Mar 2024 10:17:17 +0700 Subject: [PATCH] revert emoji picker using cached height --- .../EmojiPicker/EmojiPickerMenu/useEmojiPickerMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EmojiPicker/EmojiPickerMenu/useEmojiPickerMenu.js b/src/components/EmojiPicker/EmojiPickerMenu/useEmojiPickerMenu.js index 86cb6d921c36..ba3001703c04 100644 --- a/src/components/EmojiPicker/EmojiPickerMenu/useEmojiPickerMenu.js +++ b/src/components/EmojiPicker/EmojiPickerMenu/useEmojiPickerMenu.js @@ -22,7 +22,7 @@ const useEmojiPickerMenu = () => { const isListFiltered = allEmojis.length !== filteredEmojis.length; const {preferredLocale} = useLocalize(); const [preferredSkinTone] = usePreferredEmojiSkinTone(); - const {windowHeight} = useWindowDimensions(true); + const {windowHeight} = useWindowDimensions(); const StyleUtils = useStyleUtils(); // calculate the height of the emoji picker based popoverInnerContainer style has maxHeight is 95% const listStyle = StyleUtils.getEmojiPickerListHeight(isListFiltered, windowHeight * 0.95);