Fixed datepicker position on resize correctly#62354
Fixed datepicker position on resize correctly#62354techievivek merged 2 commits intoExpensify:mainfrom
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@shubham1206agra Could you take a look on failed github actions? |
| InteractionManager.runAfterInteractions(() => { | ||
| calculatePopoverPosition(); | ||
| }); |
There was a problem hiding this comment.
Why don't we remove it as your proposal?
There was a problem hiding this comment.
Actually, I noticed another bug when we removed this useEffect. Steps
- Go to the narrow layout to open the datepicker.
- Open the datepicker.
- Go to the wider layout and notice the wrong position of the datepicker.
|
@shubham1206agra Kindly bump |
|
@DylanDylann Answered |
|
I see that the resizing has a significant delay when using Screen.Recording.2025-05-27.at.17.39.49.mov |
|
It's not great... Though I do think this is a pretty edge case interaction. Curious what the rest of the team thinks, but ideally it wouldn't be delayed so badly. |
|
@dannymcclain If we don't delay changing the layout, it would pick the wrong values of anchor position, which was causing the bug. |
|
Definitely don't love the delay, but agree that this is something we could live with given it's a bit edge-casey. Is there anything we can do to fix it though? |
|
@shubham1206agra Is there any update? |
|
@shawnborton There is no fix to this. It is happening because too much is happening in the background, and we need to optimise the performance of the background to mitigate this lag, which is out of scope for this issue. |
|
Got it, I think we'll just have to live with it then. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2025-05-28.at.15.06.05.movMacOS: DesktopScreen.Recording.2025-05-28.at.15.06.05.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/techievivek in version: 9.1.54-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.1.54-7 🚀
|
Explanation of Change
Fixed Issues
$ #60241
PROPOSAL: #60241 (comment)
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2025-05-20.at.3.41.21.PM.mov
Android: mWeb Chrome
Screen.Recording.2025-05-20.at.3.00.18.PM.mov
iOS: Native
Screen.Recording.2025-05-20.at.3.22.03.PM.mov
iOS: mWeb Safari
Screen.Recording.2025-05-20.at.2.58.47.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2025-05-20.at.2.56.55.PM.mov
MacOS: Desktop
Screen.Recording.2025-05-20.at.3.03.37.PM.mov