Fix/regression 18110 composer should have the same height in other platforms#19516
Conversation
|
@MariaHCD I added the link to the issue is "#18110", but right format is "https://github.com/Expensify/App/issues/", so please help to assign reviewer again. Sorry for this inconvenience. |
|
|
||
| render() { | ||
| let paddingValue = 5; | ||
| if (this.props.numberOfLines === 1) paddingValue = 9; |
There was a problem hiding this comment.
Can this be moved to styles? I think it doesn't make sense to have styling added as code in render. Better to get it from styles.
There was a problem hiding this comment.
I just moved it to StyleUtils. @mananjadhav please check again
|
@dukenv0307 Can you remove the word |
I updated |
Co-authored-by: Tim Golen <tgolen@gmail.com>
mananjadhav
left a comment
There was a problem hiding this comment.
thanks for the changes @dukenv0307. I'll finish the checklist today.
Reviewer Checklist
Screenshots/Videos |
|
@dukenv0307 for all my Android emulators, the height shows up as 38.2, unlike 38 in your screenshot (and other platforms).
cc - @tgolen |
|
I think it's best to fix in another PR. Thanks for highlighting that. Can you take the latest pull for main and resolve conflicts? |
|
@mananjadhav I just updated. |
|
@tgolen did you get a chance to look at the previous comments? |
|
Quick bump @tgolen |
|
@mananjadhav I just saw that |
|
@mananjadhav @tgolen Please help review this PR to complete it when you have time. |
|
Thanks for the bump @dukenv0307. Can you resolve the conflicts please? @tgolen I've tested this, can you please take a look at the PR? |
|
@mananjadhav I resolved the conflict and also updated style for wrap view of composer in |
|
@tgolen Friendly bump to help us to take a look at the PR. |
|
@mananjadhav @tgolen Friendly bump. |
|
@mananjadhav What we should do to move forward with this PR? |
|
Hi! I was out on sabbatical for 2 months. Next time, if I (or anyone from Expensify) doesn't respond in a couple of days, please start asking for help in Slack to see what is going on and move forward with urgency on issues, not just waiting for an update indefinitely. |
|
✋ 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/tgolen in version: 1.3.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
| paddingTop: paddingValue, | ||
| paddingBottom: paddingValue, | ||
| }; | ||
| } |
There was a problem hiding this comment.
✋ Coming from #26222
The composer padding is changed inconsistently due to the number of lines changing between 3 or more, it's noticeable while the composer is full size.








Details
Composer in Android should have the same height in other platforms
Fixed Issues
$ #18110
PROPOSAL: #18110 (comment)
$ #19358
Tests
Offline tests
QA Steps
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 18110
Web
Web.mov
Mobile Web - Chrome
chrome.mp4
Mobile Web - Safari
safari.mp4
Desktop
Desktop.mov
iOS
ios.mov
Android
Android.mov
Screenshots/Videos 19358
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android