Skip to content

Autoscroll half of TextInput when its padding is set to '0' #23067

@shaktals

Description

@shaktals

Environment

React Native Environment Info:
System:
OS: Linux 4.15 Linux Mint 19 (Tara)
CPU: (4) x64 Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
Memory: 464.16 MB / 7.70 GB
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 11.4.0 - ~/.nvm/versions/node/v11.4.0/bin/node
npm: 6.5.0 - ~/.nvm/versions/node/v11.4.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
npmPackages:
react: 16.6.1 => 16.6.1
react-native: 0.57.7 => 0.57.7
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-linear-gradient: 2.5.3

Description

When TextInput padding is set to '0' (zero), autoscroll will align exactly with the bottom of the text, covering part of the input field. This behavior happens in ScrollView and KeyboardAvoidingView too.

20190118_141028

Desired behavior: autoscroll should roll the input field completely into view.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions