-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$125] iOS - Chat - Emoji picker has no space to dismiss when searching for an emoji #53218
Comments
Triggered auto assignment to @trjExpensify ( |
Edited by proposal-police: This proposal was edited at 2024-11-27 16:29:55 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Emoji picker has no space to dismiss when searching for an emoji What is the root cause of that problem?We use 95% of the window height to set the maximum height for the picker list.
And for the height, we will set the greater than or equal NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT, which is 300 Lines 929 to 931 in b011c91
When we focus on the emoji search, the keyboard will open, pushing the emoji list to the top. This happens because the height is set to 300, and the maximum height is 95% of the window height, as we do not exclude the keyboard's height What changes do you think we should make in order to solve the problem?To resolve this issue, we need to exclude the height of the keyboard when setting the maximum height for the picker list. Some thing like that: //src/components/EmojiPicker/EmojiPickerMenu/useEmojiPickerMenu.ts#L31
+ const {keyboardHeight} = useKeyboardState();
- const listStyle = StyleUtils.getEmojiPickerListHeight(isListFiltered, windowHeight * 0.95);
+ const listStyle = StyleUtils.getEmojiPickerListHeight(isListFiltered, windowHeight * 0.95 - keyboardHeight); //src/styles/utils/index.ts#L393
function getEmojiPickerListHeight(isRenderingShortcutRow: boolean, windowHeight: number): ViewStyle {
const style = {
height: isRenderingShortcutRow ? CONST.NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT + CONST.CATEGORY_SHORTCUT_BAR_HEIGHT : CONST.NON_NATIVE_EMOJI_PICKER_LIST_HEIGHT,
};
if (windowHeight) {
// dimensions of content above the emoji picker list
const dimensions = isRenderingShortcutRow ? CONST.EMOJI_PICKER_TEXT_INPUT_SIZES + CONST.CATEGORY_SHORTCUT_BAR_HEIGHT : CONST.EMOJI_PICKER_TEXT_INPUT_SIZES;
return {
...style,
maxHeight: windowHeight - dimensions,
+ height: Math.min(style.height, windowHeight - dimensions),
};
}
return style;
} POCScreen.Recording.2024-11-28.at.22.58.51.movWhat alternative solutions did you explore? (Optional) |
This is pretty minor and specific to a 4+ year old device. Dropping the price. |
Job added to Upwork: https://www.upwork.com/jobs/~021861826366793735200 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
Upwork job price has been updated to $125 |
Thanks @huult, I don't think your RCA is correct. I can reproduce this issue on iPhone SE, even when the maxHeight is bigger than actual height. Apply your diff also didn't fix the bug btw. |
Proposal updated
@hungvu193 Sorry, I've updated the RCA and solution. Can you help me check it again? |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.67-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/cases/view/2654739
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
There's a bit of space so a user can dismiss the picker without needing to make search results fewer or add an emoji
Actual Result:
Describe what actually happenedOn the iPhone 12 mini there's not enough space on the top of the emoji picker when making a search to dismiss it. User needs to either add an emoji or first tap on an empty area of the picker to dismiss the keyboard and then tap to exit the picker.
Also the picker is slightly overlap by the time and status bar
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6677549_1732663537801.RPReplay_Final1732663095.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hungvu193The text was updated successfully, but these errors were encountered: