Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Conversation

alexeymetelkinpro
Copy link

Pull request checklist

  • All tests pass. Demo project builds and runs.
  • I have resolved any merge conflicts.
  • I have followed the coding style, and reviewed the contributing guidelines. Confirmation: 💪😎👊

This fixes issue #256 .

What's in this pull request?

Fix with calulation of content offset;

@codecov-io
Copy link

codecov-io commented Jul 20, 2016

Current coverage is 60.92%

Merging #1743 into develop will decrease coverage by 0.05%

@@            develop      #1743   diff @@
==========================================
  Files            62         62          
  Lines          2224       2226     +2   
  Methods         612        612          
  Messages          0          0          
  Branches        134        134          
==========================================
  Hits           1356       1356          
- Misses          793        795     +2   
  Partials         75         75          

Sunburst

Powered by Codecov. Last updated by 48389b4...00cbe63

animated:animated];

CGFloat contentWindowHeight = collectionViewHeight - self.collectionView.contentInset.top - self.collectionView.contentInset.bottom;
CGFloat offsetHeight = MAX(0.f, collectionViewContentHeight - contentWindowHeight) - self.collectionView.contentInset.top;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we subtracting contentInset.top twice?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly twice, only if content passed visible portion of scrolling view.
in contentWindowHeight it subtracting for get actual value of visible height of scroll view,
second time, in offsetHeight, it's subtracted as part of contentOffset - to get correct offset value

@jessesquires
Copy link
Owner

thanks @alexeyhippie ! a couple of questions for you

@jessesquires
Copy link
Owner

👍 i'll need to test this on develop and then we can merge if all is good

@jessesquires jessesquires self-assigned this Jul 23, 2016
@tunidev
Copy link

tunidev commented Aug 6, 2016

What is the status of this fix ?

Copy link

@viethdtadi viethdtadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please tell me status of this issue.

@jessesquires
Copy link
Owner

Hello everyone!

I'm sorry to inform the community that I'm officially deprecating this project. 😢 Please read my blog post for details:

http://www.jessesquires.com/blog/officially-deprecating-jsqmessagesviewcontroller/

Thus, I'm closing all issues and pull requests and making the necessary updates to formally deprecate the library. I'm sorry if this is unexpected or disappointing. Please know that this was an extremely difficult decision to make. I'd like to thank everyone here for contributing and making this project so great. It was a fun 4 years. 😊

Thanks for understanding,
— jsq

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

Successfully merging this pull request may close these issues.

5 participants