-
Notifications
You must be signed in to change notification settings - Fork 3.5k
#20709: Use windowHeight in getNavigationModalCardStyles #23222
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
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
@jscardona12 Please consider the following:
|
|
Also please change the title to be more explanatory. It's a bit unclear. |
|
Hi @s77rt, code changes made and tested. and PR description comments applied as well. |
| @@ -8,4 +8,5 @@ export default ({windowHeight, isSmallScreenWidth}) => ({ | |||
| // https://github.com/Expensify/App/issues/12005 | |||
| // https://github.com/Expensify/App/issues/17824 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a link to the issue we are fixing as well
|
Can you change the title to: Use |
|
@s77rt done |
|
@s77rt index.js added |
|
I have read the CLA Document and I hereby sign the CLA |
Reviewer Checklist
Screenshots/Videos |
s77rt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
|
@jscardona12 Oops, we have a lint issue, please run prettier and commit changes |
|
Hi @johnmlee101 @s77rt, prettier run is up now. |
|
✋ 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/johnmlee101 in version: 1.3.44-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
|
🚀 Deployed to staging by https://github.com/johnmlee101 in version: 1.3.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
| height: `${windowHeight}px`, | ||
| minHeight: `${windowHeight}px`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This caused a regression on Safari where the window height is not reliable.






Details
pass the windowHeight to the new navigationModalCard implementation in App/src/styles
/styles.js. , and apply it to the height property.
This would be re-applying the fix on this PR with previous fix
to the new implementation.
Fixed Issues
$ #20709
PROPOSAL: #20709 (comment)
Tests
First Scenario
Second Scenario
Offline tests
QA Steps
First Scenario
Second Scenario
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
This just happens in Mobile Web - Safari
Web
Screen.Recording.2023-07-20.at.6.29.26.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-07-20.at.6.57.21.AM.mov
Mobile Web - Safari
withSolution.mp4
Desktop
Screen.Recording.2023-07-20.at.7.01.44.AM.mov
iOS
WhatsApp.Video.2023-07-20.at.6.41.12.AM.mp4
Android
Screen.Recording.2023-07-20.at.6.52.30.AM.mov