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

Fix 31 - GridDividerItemDecoration crashes on drawVerticalDividers(...) #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mobiRic
Copy link

@mobiRic mobiRic commented Mar 2, 2018

Fixes #31

A recent change to the vertical divider logic removed the check for numChildrenOnLastRow. That caused a crash when the last row was full. I find this version of the calculation simpler than the old version and I think it fits better with the new logic of the method.


I hope you do not mind adding the comment there - I spent quite a long time trying to figure out the purpose of some of the variables and I hope this comment helps future maintainers.

As with all contributions to foreign repos, I'm happy to change the styling to be consistent with your team so let me know what I should change.

Given a grid where all rows are filled up to the end, the calculation for `rowCount` has been corrected by bringing back logic that was previously removed.

Resolves: bignerdranch#31
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

Successfully merging this pull request may close these issues.

1 participant