Resolved the Composer text vertical alignment#10394
Conversation
|
Thanks for raising the PR. Could you add two tests please to the issue description for QA and the reviewers to follow? It can be much simpler for your tests, but this is an example. Thanks!
|
|
@Julesssss I'm having a little difficulty with the test. Here is what I've got locally so far:
I qualified the Any inputs please? |
|
Oh sorry @liyamahendra, I just meant some test steps for QA to follow. |
|
Something like this: I think you can just add this to the description: Test single line padding
Test multi line padding
|
|
@Julesssss haha! My bad I assumed you suggested to write the actual tests. I just updated the description. Please let me know if there is anything else. Thanks! |
|
@liyamahendra Update the tests section too. |
|
Also, can you pull the latest changes from the |
|
@Santhosh-Sellavel done! |
|
PR is failing for me on Android cc: @Julesssss |
Santhosh-Sellavel
left a comment
There was a problem hiding this comment.
PR is failing for android
|
@Santhosh-Sellavel I was able to reproduce the issue you shared on Android. I debugged and solved it. Also tested on all platforms. PS: Please ignore the red border in the screenshot - it was for proper testing of the alignment of the actual text input. |
|
Let's test this for a bit more time before we move forward, thanks! |
|
Web is looking good to me now |
|
@liyamahendra |
|
@Santhosh-Sellavel pulled the latest from main! |
|
@liyamahendra |
|
Bug: Compose bottom border is broken in android while typing multiple lines Screen.Recording.2022-09-04.at.12.20.55.AM.mov |
|
@Santhosh-Sellavel that's a very good observation! You've got an eye for quality! :) Let me look into this please. |
|
@Santhosh-Sellavel The issue doesn't seem to occur on mWeb and iOS. Though I was able to reproduce the issue you shared, I wasn't able to figure out the cause of the issue. @Santhosh-Sellavel @Julesssss do you've insights into what might be the cause? |
|
I think the inner |
|
@Santhosh-Sellavel since the styles & code was looking alright, I tested the app on an actual device, as opposed to emulator and the issue was not reproduced. Looks like its an issue with the rendering on an emulator. Sharing the screencast from my device. device.mp4Please do try on Android and comment if its still an issue. |
|
@liyamahendra But I tested on my personal android device only first, then only I took screen recording from simulator for easy convenience. I'll share you the recording shortly or later today, thanks! |
|
@Santhosh-Sellavel my bad - I was on the wrong branch. Recording is not required please. I do see the issue on the device as well. |
|
@Santhosh-Sellavel I resolved the issue. Please verify when you can. |
Bump |
| paddingVertical: 6, | ||
| paddingVertical: 1, | ||
| alignSelf: 'center', |
There was a problem hiding this comment.
Again adding paddingVertical with alignSelf: 'center'?
Are we sure it won't break anything on other platforms?
There was a problem hiding this comment.
I think we could move code to StyleUtils and define platform-specific styles.
cc: @Julesssss What do you think?
There was a problem hiding this comment.
Are we sure it won't break anything on other platforms?
Yes, I did test out on other platforms!
There was a problem hiding this comment.
I think we could move code to StyleUtils and define platform-specific styles.
Depends on whether the styling works for all platforms or not... Would prefer to have a single consistent style, if possible
Sorry, what recording are you referring to please? @Santhosh-Sellavel |
Screen recording for each platform, performing the steps in QA! |
|
@Santhosh-Sellavel - I think the screenshots in the OP have been updated 6 days ago. @liyamahendra can you confirm? Also, this PR now has conflicts that need to be resolved. We're so close, let's get this over the line! ❤️ |
|
@trjExpensify yes, I did update the description with screencast for all platforms. cc: @Santhosh-Sellavel |
|
Please resolve the conflicts |
|
@liyamahendra This off holds now, can you merge it with the latest main? So we can get this moving forward, thanks! |
|
@Santhosh-Sellavel I don't have permissions to merge to main. It also says that the PR needs to be approved before merging can happen. |
|
Hi @liyamahendra, @Santhosh-Sellavel means that you should merge the latest changes from |
|
@Santhosh-Sellavel, @liyamahendra has merged main. Have you re-reviewed? |
|
Based on the screenshots, iOS still appears to be pushed slightly downward. |
| }} | ||
| style={[styles.textInputCompose, this.props.isComposerFullSize ? styles.textInputFullCompose : styles.flex4]} | ||
| style={[styles.textInputCompose, this.props.isComposerFullSize ? styles.textInputFullCompose : styles.inputComposerPadding]} | ||
| defaultValue={this.props.comment} |
There was a problem hiding this comment.
Apart from flex4, I had to add more styling and so styles.inputComposerPadding
There was a problem hiding this comment.
I'm asking about why defaultValue prop was added here?
|
Also, one more breakage text should not be centered here right @shawnborton? |
|
Closing this PR as it's no longer a viable direction for the linked issue. |
















Details
Resolved the vertical alignment of text inside the Composer
Fixed Issues
$ #10202
Tests
Test single line padding
Test multi line padding
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly 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)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly 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)QA Steps
Test single line padding
Test multi line padding
Screenshots
Web
Mobile Web
Desktop
iOS
Android
Screencasts
Web
browser.mp4
Mobile Web
mWeb.mp4
Desktop
desktop.mp4
iOS
ios.mp4
Android
Android.mp4