Skip to content

Commit

Permalink
Fix composer collapse on send with spacing wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-marcellini committed Jun 3, 2022
1 parent 5cecb2c commit b6c1751
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Composer/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import lodashGet from 'lodash/get';
import RNTextInput from '../RNTextInput';
import themeColors from '../../styles/themes/default';
import CONST from '../../CONST';
import styles from '../../styles/styles';

const propTypes = {
/** If the input should clear, it actually gets intercepted instead of .clear() */
Expand Down Expand Up @@ -110,7 +111,7 @@ class Composer extends React.Component {
*/
updateNumberOfLines(e) {
const lineHeight = this.state.propStyles.lineHeight;
const paddingTopAndBottom = this.state.propStyles.paddingVertical * 2;
const paddingTopAndBottom = styles.textInputComposeSpacing.paddingVertical * 2;
const inputHeight = lodashGet(e, 'nativeEvent.contentSize.height', null);
if (!inputHeight) {
return;
Expand Down

0 comments on commit b6c1751

Please sign in to comment.