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

First item on Scrollview doesn't appear correctly on screen with Navigation Controller #1

Open
danglade opened this issue Apr 30, 2015 · 4 comments

Comments

@danglade
Copy link

Hello,

Using the example provided on the .zip I added a Navigation View Controller and the behavior of the first Item on the array does not center correctly, also the rest of them works fine. I've tried changing the top constraints to the navigation controller instead of the TOP of the view. See video

https://drive.google.com/file/d/0B4Q3UfIP0FCUZUI5Y3BDWEFlQ0U/view?usp=sharing

Thanks

@jonathantribouharet
Copy link
Owner

I think the height of the contentSize of the scrollview if bigger than the height of the scrollView, so you have a vertical scroll. I don't use the storyboard so I can't help you more with this.

@danglade
Copy link
Author

But since it works fine without the navigation controller, is not related to that?

@jonathantribouharet
Copy link
Owner

I think it's related to the constraints you have defined.

@danglade
Copy link
Author

image

I have them defined same as you had it on your example. Only difference is top constraint is to the navigation controller instead of the view. See image, also here is the link of the example project as I have it now.

https://drive.google.com/file/d/0B4Q3UfIP0FCUR2JCSDBFOE51dUU/view?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants