Skip to content

Commit e703657

Browse files
committed
Add isComposerFullSize to PropTypes and defaultProps
Signed-off-by: Juan Sebastian Cardona <[email protected]>
1 parent b9b0072 commit e703657

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/Composer/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ const propTypes = {
8383
/** Whether this is the report action compose */
8484
isReportActionCompose: PropTypes.bool,
8585

86+
/** Whether the sull composer is open */
87+
isComposerFullSize: PropTypes.bool,
88+
8689
...withLocalizePropTypes,
8790

8891
...windowDimensionsPropTypes,
@@ -111,6 +114,7 @@ const defaultProps = {
111114
shouldCalculateCaretPosition: false,
112115
checkComposerVisibility: () => false,
113116
isReportActionCompose: false,
117+
isComposerFullSize: false,
114118
};
115119

116120
/**

src/styles/StyleUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ function getMentionTextColor(isOurMention: boolean): string {
11001100
*/
11011101
function getComposeTextAreaPadding(numberOfLines: number, isComposerFullSize: boolean): ViewStyle | CSSProperties {
11021102
let paddingValue = 5;
1103-
// If isComposerFullSize paddingValue will always be 5
1103+
// Issue #26222: If isComposerFullSize paddingValue will always be 5 to prevent padding jumps when adding multiple lines.
11041104
if (!isComposerFullSize) {
11051105
if (numberOfLines === 1) {
11061106
paddingValue = 9;

0 commit comments

Comments
 (0)