fix!: fix TextInput paddingOut not based on lineHeight when provided#2621
Conversation
|
@brunohkbx @jbinda Any news on this ? |
|
@brunohkbx You can try it out here on real android device, you'll see that smiley's are cut, it also sometimes happen with some fonts: https://snack.expo.io/@magrin_j/react-native-paper-text-input-line-height-problem To fix this current issue, my PR fix the There is also another problem happening with latest release when you have a big roundness, the label background is cutting out the border line on top and on bottom. This other problem is not fixed in this PR, but I'll try to take a look later and create a new PR if I find a solution. |
|
@brunohkbx Any news on this ? |
|
@brunohkbx Perfect ! Thanks for the fix 🙂 |
|
Hi, When this fix will be updated on NPM? |




Summary
When using a
TextInputinoutlinedmode text can be cut on some device, especially on Android.This is due to the fact that
adjustPaddingOutis only based onfontSize, and even if you passlineHeightin the style to avoid this, this one is not used.So, to prevent this issue
adjustPaddingOutis now based onlineHeightwhen this one is provided.Test plan
Before:

After:
