Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ScrollView] scroll to Top leaves unnecessary white space #16114

Closed
ahishek opened this issue Sep 27, 2017 · 3 comments
Closed

[ScrollView] scroll to Top leaves unnecessary white space #16114

ahishek opened this issue Sep 27, 2017 · 3 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@ahishek
Copy link

ahishek commented Sep 27, 2017

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

screen shot 2017-09-27 at 3 55 09 pm

Actual Behaviour

screen shot 2017-09-27 at 3 54 28 pm

screen shot 2017-09-27 at 3 54 54 pm

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)

@jeremybarbet
Copy link
Contributor

This issue have been fixed on latest version of react-native, see here: 1954438#diff-973dcd0e3fbfcc5e35485bb6404a2fd2

You can either upgrade, or patch the code library component if you can't upgrade.

@pull-bot
Copy link

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Oct 10, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Oct 10, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants