-
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
fix overscroll spacer in safari #26873
fix overscroll spacer in safari #26873
Conversation
@0xmiroslav 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] |
5fe785d
to
b309738
Compare
Update this to
|
done |
Reviewer Checklist
Screenshots/VideosWebsafari.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
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! (still workaround though)
@roryabraham Please Hold your review I found a styling issue, pushing fix in few minutes |
{Browser.isSafari() && ( | ||
<View style={[styles.dualColorOverscrollSpacer]}> | ||
<View style={[styles.flex1, StyleUtils.getBackgroundColorStyle(backgroundColor)]} /> | ||
<View style={[isSmallScreenWidth ? styles.flex1 : styles.flex3, StyleUtils.getBackgroundColorStyle(themeColors.appBG)]} /> |
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.
for the large screen when workspace count is less upper background was visible, On mac safari, overscrolling is allowed very little so i guess this is fine
3bbf0d5
to
b309738
Compare
@0xmiroslav @roryabraham Bumping for review |
@ishpaul777 ok, so you changed nothing after my review, right? |
I apologize i changed few things commit was not signed, reverted and forgot to push again, will made change again give me few mins. |
@@ -66,9 +68,9 @@ function IllustratedHeaderPageLayout({backgroundColor, children, illustration, f | |||
loop | |||
/> | |||
</View> | |||
<View style={[styles.pt5]}>{children}</View> | |||
<View style={[styles.pt5, StyleUtils.getBackgroundColorStyle(themeColors.appBG)]}>{children}</View> |
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.
Use new variable defining this.
263249e
to
23fe5ca
Compare
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!
I think @roryabraham will be busy this week (attending in RNEU conference)
Hopefully reviewed & merged next Monday
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.
I was still able to reproduce this in Safari with a vigorous scroll, but it's much better than it was.
web.mov
We also can't really shift it so that the blue background takes up more than half of the screen because then we'll just introduce the inverse problem on the bottom.
So with this PR you can still see the bug if you intentionally over-scroll beyond what you would normally do. The solution isn't perfect but it's a workaround to a safari bug that makes it better for most users most of the time, and I'll take that in this case because we can't fix it upstream in Safari.
This is not urgent, so I'd like to wait until after we do one more production release before merging this. Because of the merge freeze, if we're not careful we'll have a GIANT release checklist on our hands if we merge everything the first day the freeze is lifted. This delay should not count against the #urgency bonus. I think the PR was made and approved by C+ within the time limit to get the #urgency bonus so unless something changes I think this PR should receive the #urgency bonus |
Thanks for your patience here @ishpaul777. Can you please resolve conflicts so we can get this merged? |
@ishpaul777 did you test all platforms after last commit? |
@0xmiroslav android app is build, tested on all other platforms, also How can i test lounge access page? |
Manually search for |
Lounge access page has header BG same as appBG so fix has effect on the page. Android app is still building, sorrry for delay. Screen.Recording.2023-09-14.at.3.38.45.PM.mov |
Merge changes tests well on all platforms @0xmiroslav |
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.
Tests well for me too
@roryabraham all good to merge!
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
✋ 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/roryabraham in version: 1.3.71-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.71-12 🚀
|
Details
Fixed Issues
$ #23422
PROPOSAL: #23422 (comment)
Tests
On Safari IOS and IOS Native app:
Offline tests
On Safari IOS and IOS Native app:
QA Steps
On Safari IOS and IOS Native app:
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web Safari
Screen.Recording.2023-09-06.at.10.50.47.AM.mov
Web Chrome
Screen.Recording.2023-09-06.at.8.17.06.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-09-06.at.11.04.30.AM.mov
Mobile Web - Safari
Screen.Recording.2023-09-06.at.10.45.52.AM.mov
Desktop
Screen.Recording.2023-09-06.at.8.10.54.PM.mov
iOS
Screen.Recording.2023-09-06.at.10.47.14.AM.mov
Android
Screen.Recording.2023-09-06.at.11.24.52.AM-1.mov