-
Notifications
You must be signed in to change notification settings - Fork 3k
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: Chat - Height of edit field is different for mWeb and native app #18214
Fix: Chat - Height of edit field is different for mWeb and native app #18214
Conversation
…nt-for-mWeb-and-native
…nt-for-mWeb-and-native
…nt-for-mWeb-and-native
@roryabraham ready for review! 🚀 |
Reviewer Checklist
Screenshots/Videos |
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 code LGTM, just waiting on @rushatgabhane to test + approve
@@ -4,10 +4,12 @@ import PropTypes from 'prop-types'; | |||
import _ from 'underscore'; | |||
import RNTextInput from '../RNTextInput'; | |||
import themeColors from '../../styles/themes/default'; | |||
import CONST from '../../CONST'; |
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.
NAB: I think we should rename CONST.COMPOSER_MAX_HEIGHT
to MINIMUM_PIXEL_DISTANCE
const minimumPixelDistance = CONST.COMPOSER_MAX_HEIGHT; |
@@ -100,12 +103,13 @@ class Composer extends React.Component { | |||
<RNTextInput | |||
autoComplete="off" | |||
placeholderTextColor={themeColors.placeholderText} | |||
maxHeight={this.props.isComposerFullSize ? '100%' : undefined} |
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.
Unrelated:
@roryabraham I was thinking if the composer should occupy all available vertical space. It's not related to the PR, but should I bring this to open-source channel?

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.
@roryabraham LGTM! 🚀
✋ 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/deetergp in version: 1.3.17-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.17-5 🚀
|
@roryabraham @sonialiap
Details
Fixes the inconsistent compose box heights for native and mWeb.
Fixed Issues
$ #11694
PROPOSAL: #11694 (comment)
Tests
Offline tests
None needed
QA Steps
Same as normal tests
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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android