-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Web - Resizing browser triggers reaction emoji picker to shift to LHN #21982
Comments
Triggered auto assignment to @kadiealexander ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The emoji picker positions itself to the top-left corner of the screen if the window dimensions change. What is the root cause of that problem?The position of the emoji picker is dynamically updated if a dimension change is detected. An anchor (element) is used as a reference position. App/src/components/EmojiPicker/EmojiPicker.js Lines 42 to 46 in 5a713dd
However, the anchor What changes do you think we should make in order to solve the problem?Close the emoji popover if the window dimensions change. What alternative solutions did you explore? (Optional)Recompute the new position based on the difference between the dimensions of the old and new situation. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Resizing browser triggers reaction emoji picker to shift to LHN What is the root cause of that problem?@samh-nl 's root cause is correct What changes do you think we should make in order to solve the problem?When vertical === 0 and horizontal === 0, leave it unchanged.
This works fine and wouldn't have any side effects Result21982.mp4What alternative solutions did you explore? (Optional) |
@s-alves10 The emoji picker will remain in the same coordinate if a I have a revised proposal that solves the root cause and is a more elegant approach compared to my original proposal. ProposalPlease re-state the problem that we are trying to solve in this issue.The emoji picker positions itself to the top-left corner of the screen if the window dimensions change. What is the root cause of that problem?The anchor referenced by App/src/components/EmojiPicker/EmojiPicker.js Lines 42 to 46 in 5a713dd
This causes the position to be x=0, y=0. What changes do you think we should make in order to solve the problem?We need to use the same anchor that is used by What alternative solutions did you explore? (Optional)N/A |
Dupe of #17603 |
The incorrect position is clearly a bug and can be addressed by using the same anchor as the context menu that precedes it. It's stated to be expected behavior without any elaboration, that is not a satisfactory reason in my opinion to dismiss a bug. |
Agreed, dupe of #17603. Please post your proposals there. Thanks @daraksha-dk! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should not display emoji picker on LHN
Actual Result:
App displays reaction emoji picker on LHN when we resize browser
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.34-1
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
emoji.picker.on.LHN.resize.mp4
Expensify/Expensify Issue URL:
Issue reported by: 1.3.34-1
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688053285771839
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: