Skip to content

Commit

Permalink
fix: text below the input flickers in ios.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmdshrif committed Jul 18, 2023
1 parent 5a07bc0 commit 7d82a3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -855,10 +855,11 @@ const styles = {
backgroundColor: themeColors.buttonDefaultBG,
},

autoGrowHeightInputContainer: (textInputHeight, maxHeight) => ({
height: textInputHeight >= maxHeight ? maxHeight : textInputHeight,
minHeight: variables.componentSizeLarge,
}),
autoGrowHeightInputContainer: (textInputHeight, maxHeight) => {
const minHeight = variables.componentSizeLarge;
const height = Math.min(Math.max(minHeight, textInputHeight), maxHeight);
return {height, minHeight};
},

autoGrowHeightHiddenInput: (maxWidth, maxHeight) => ({
maxWidth,
Expand Down

0 comments on commit 7d82a3e

Please sign in to comment.