[ScrollView] scroll to Top leaves unnecessary white space #16114
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
I'm trying to scroll to the top of my scrollView on the click of an item at it's bottom. But what's happening is that, on doing this, it leaves random white space at the top of my scrollview. Basically, pushes my other content down.
`<ScrollView
ref={(c) => {
this.content = c;
}}
alwaysBounceVertical={false}
bounces={false}
automaticallyAdjustContentInsets={false}
onScroll={this.handleScroll}
>
{....content}
// On bottom component click,
this.content.scrollTo({ y: 0, x: 0, animated: true });
`
Here are the screen shots -
Expected Behaviour
Actual Behaviour
Environment
Environment:
OS: macOS Sierra 10.12.6
Xcode: 9.0 (9A235)
Packages: (installed)
react-native: 0.45.1
react: 16.0.0-alpha.12
Target Platform: iOS (11)
The text was updated successfully, but these errors were encountered: