Fix CollapsibleHeaderOnKeyboard not restoring header height after rotation - #97214
Conversation
|
@codex review |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 31047843ce
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@truph01 let's prioritize this |
|
sure. I can work on it on next 30mins |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@truph01 are we good to go? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safariandroid_hybrid.mp4ios_hybrid.mp4web_chrome.mp4 |
Krishna2323
left a comment
There was a problem hiding this comment.
LGTM!
One note: when the input is focused and you rotate back to portrait, the page layout stays in landscape. This also happens on main, so it’s unrelated to this PR.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 NicolasBonet has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
…ape-mode/fix-collapsiple-header-not-restoring-header-height Fix `CollapsibleHeaderOnKeyboard` not restoring header height after rotation (cherry picked from commit d51fb36) (cherry-picked to staging by roryabraham)
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 9.4.45-10 🚀
|
Help site review — no changes requiredI reviewed the changes in this PR and no updates to the help site files under Why: This PR is an internal rendering/animation bug fix for the The one article that touches the same area — Create and Use Custom Agents — documents how to write custom instructions, not the header's collapse/rotation behavior, so it doesn't need to reflect this fix. @GCyganek, since there are no required help site changes there is no linked docs PR to review. If you believe some behavior here should be documented, let me know and I'll draft one. |
|
🚀 Cherry-picked to staging by https://github.com/roryabraham in version: 9.4.45-12 🚀
|
|
🤖 No help site changes required. This PR is an internal bug fix to the native rendering logic of the shared The change is limited to a single file ( Since no docs updates are warranted, I did not open a draft help site PR. @GCyganek, if you believe there's a specific help article that should describe this behavior, let me know which one and I'll draft the update. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.4.45-14 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Fixes
CollapsibleHeaderOnKeyboardnot restoring header height after device rotation to portrait mode. Also addingisKeyboardFullyOpencheck and addnaturalHeightRef.current !== heightcomparison inonLayoutto make sure duplicated onLayoutheightupdates do not cancel ongoing animationwhen rotating from portrait to landscape with opened keyboardFixed Issues
$ #97196
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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.2026-07-28.at.11.46.53.mov
iOS: Native
Screen.Recording.2026-07-28.at.11.46.26.mov