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
Twitter-Like Header: doesn't snap back #11
Comments
Just a bit more info I discovered. If I use your example header image and navigation blur image it works as expected. We need to dynamically load our images, so that part is different. Also, these images will vary in size and aspect ratios (they are user submitted). How would the dimensions or aspect ratio effect this part of the control? More importantly, how do we fix it? |
Hi @btrzupek , it seems to be a problem with the constraints definition. Honestly without seeing the code I can't know it. You could try to print the rect for the problematic background and guess what's going on, probably Auto Layout is giving you warnings... Good luck! |
Oh by the way, I would have a look at the added text field, probably its constraints are the ones misadjusting the imageView's constraints. |
Thanks for the quick reply! Have a look, if you can, at the constraints code below: `- (void)setupConstraints {
}` |
Oh - and Auto-Layout is silent, there aren't any warnings. :/ |
Honestly, I don't know what might be wrong: I added an extra label below To debug the issue, I would deactivate views one by one to see where the error is. If you can confirm it's an error in the library I could debug it a little bit further. |
Ok, so tweaking the constraint on the userImageView did the trick. Here is where it ended. I am not sure why this was the magic - but I will accept it:)
|
Thanks a ton for the help! |
We have implemented a header view based pretty much exactly off the Twitter-like example. The main difference is that we centered the UserImage View and made it larger. We also added an additional field below the description field you had. So some pretty minor layout changes.
It looks great when the view first loads. However, (only after) I scroll through a page of data in the view and THEN scroll back to the top, when the top scrolls to the full size again. the header background image stays extremely large, and forces all the fields below it to compress and clip.
Why would this be happening?
Example image attached.
Sorry for the blurs. (Customer data)
The text was updated successfully, but these errors were encountered: