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

Long cell disappearing fix #78

Merged
merged 1 commit into from
Nov 15, 2014
Merged

Conversation

mli-eventbrite
Copy link
Contributor

In the process of creating the union rects, the prior code has the assumption that the last element within a given set of elements is the has the lowest position. However, this assumption is not always correct. In the case where cells have varying heights, it is possible for another cell to have the lowest point. This results in the union rect not containing all the cells correctly. See picture:
img_0007

The impact of this is that when scrolling past the bounds of the unionrect, the tall cell will disappear. Since the tall cell could be any one of the cells, from the first cell to the last one, the fix was to take the union of each cell in the group. It was tested and found that the performance degradation is approximately 5%.

@chiahsien
Copy link
Owner

Nice catch! Thanks

chiahsien added a commit that referenced this pull request Nov 15, 2014
@chiahsien chiahsien merged commit a58b884 into chiahsien:develop Nov 15, 2014
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.

None yet

2 participants