question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextInput in outlined mode : crop text / content can be scroll verticaly

See original GitHub issue

Environment

“react-native-paper”: “^3.6.0” on Android

Description

Text inside textInput can be scroll verticaly and crop when you use height with style prop in outlined mode. Look like there is a problem with paddingVertical.

<TextInput
        mode="outlined"
        placeholder="I'm crop and can scroll verticaly 🙁"
        style={{ height: 64}}
        value={this.state.text}
        onChangeText={text => this.setState({ text })}
      />

20200401_162354

Reproducible Demo

https://snack.expo.io/@lvantours/bug-on-textinput-in-outlined-mode

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:17

github_iconTop GitHub Comments

16reactions
AmadeusWMcommented, Dec 5, 2021

I found an error, paddingOut in react-native-paper/src/components/TextInput/TextInputOutlined.tsx generates a problem.

Same problem here, removing paddingOut from the style argument in the InputLabel worked.

6reactions
Sebastian-Neubertcommented, Dec 11, 2020

I have the same problem. Please reopen this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prevent Text scrolling and truncation in TextInput field
TextInput in android seems to have a default paddingBottom set whereas iOS doesn't, because android have underline tag but ios doesn't .
Read more >
overscroll-behavior - CSS: Cascading Style Sheets | MDN
The overscroll-behavior CSS property sets what a browser does when reaching the boundary of a scrolling area.
Read more >
Text fields - Selection and input - Human Interface Guidelines
A text field is a rectangular area in which people enter or edit small, specific pieces of text.
Read more >
Text fields - Material Design
Text fields should stand out and indicate that users can input information. ... They are a fixed height and scroll vertically when the...
Read more >
Scroll Rect | Unity UI | 1.0.0
Usually a Scroll Rect is combined with a Mask in order to create a scroll view, where only the scrollable content inside the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found