-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Proper support vertical and bottom positions in IGListAdapter scrollToObject: API #861
Conversation
Dang, that Travis test output is garbage
The expectation values are a little off, right? If section 2 has
And bottom should be:
Right? We found and fixed an issue when the content height doesn't fill the bounds: 1d926d9. |
26d7a0e
to
6ffebfa
Compare
@rnystrom oh right !
Makes sense ? I updated the PR for now and will correct if I'm wrong. |
@gmoledina duh, good call. You're right it should be |
6ffebfa
to
1d8d136
Compare
@gmoledina updated the pull request - view changes |
…ixes previous failing tests)
@gmoledina updated the pull request - view changes |
@rnystrom No Worries! Can't believe how easy the fix for this was ! My branch with the fix (+ extra tests) is ready (this same PR) but if you're reverting PR#808, then we'll have to wait as the fix also depends on the previous changes on the |
@gmoledina updated the pull request - view changes |
Sounds great, will sort this out this week! |
Restoring the base PR today! Will land soon, then we can do this. 💪 |
moving to 3.1 changelog entry
changelog wording, restore "upcoming release"
@gmoledina updated the pull request - view changes |
Waiting on CI, but including this in the 3.1 release |
scrollToObject
API
Need to run through some internal testing to make sure we don't break anything else. Importing, once everything is clear will land! |
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Changes in this pull request
I simply wrote failing tests for
scrollToObject
API for theScrollPosition
parameter and then fixed the code.If we agree that these tests are correct, I don't mind suggesting a fix for it. I think it's the
indexPath
's row that is hardcoded to0
that needs to be changed depending on thescrollPosition
desired. (Done!)Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.