Fix able to scroll horizontally out of screen width on sign in page#25457
Conversation
|
@narefyev91 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] |
|
There are 2 existing issues on |
| <View style={[styles.flex1]}> | ||
| <View style={[props.isSmallScreenWidth ? StyleUtils.getBackgroundColorStyle(themeColors.signInPage) : {}]}> | ||
| {props.isSmallScreenWidth ? ( | ||
| <View style={[...(isVertical ? [StyleUtils.getBackgroundColorStyle(themeColors.signInPage), styles.overflowHidden] : [{}])]}> |
There was a problem hiding this comment.
i think we can move this our from render and add const footerWrapper = isvertical ? StyleUtils.getBackgroundColorStyle(themeColors.signInPage), styles.overflowHidden] : null
and use <View style={footerWrapper}
something like that
There was a problem hiding this comment.
Good idea. Updated
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid-web.movMobile Web - Safariios-web.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
narefyev91
left a comment
There was a problem hiding this comment.
LGTM! Small comment to fix
🎀 👀 🎀 C+ reviewed
srikarparsi
left a comment
There was a problem hiding this comment.
looks good to me as well, 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/srikarparsi in version: 1.3.56-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|
| ref={scrollViewRef} | ||
| > | ||
| <View style={[styles.flex1, styles.flexColumn, StyleUtils.getMinimumHeight(Math.max(variables.signInContentMinHeight, containerHeight))]}> | ||
| <View style={[styles.flex1, styles.flexColumn, styles.overflowHidden, StyleUtils.getMinimumHeight(Math.max(variables.signInContentMinHeight, containerHeight))]}> |
There was a problem hiding this comment.
It seems that overflowHidden has introduced a bug with mobile chrome in #40559.
Details
On iOS mWeb, we can hold down on any text (or text input) and keep dragging the selection to the right which will eventually scroll the page horizontally out of the screen width.
Fixed Issues
$ #24328
PROPOSAL: #24328 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
mWeb/Android/iOS
Note for Android
On Android, you can only drag the magnifying glass as long as the length of the email/input. So, fill the email input with a long email
Web/Desktop
Just make sure the sign page is not broken
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
Web
Screen.Recording.2023-08-18.at.12.47.57.mov
Mobile Web - Chrome
Screen.Recording.2023-08-18.at.12.46.31.mov
Mobile Web - Safari
Screen.Recording.2023-08-18.at.12.41.59.mov
Desktop
Screen.Recording.2023-08-18.at.12.48.57.mov
iOS
Screen.Recording.2023-08-18.at.12.42.45.mov
Android
Screen.Recording.2023-08-18.at.13.32.18.mov