-
Notifications
You must be signed in to change notification settings - Fork 219
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
Inserted cell is overlayed on top of existing cells #27
Comments
@evil159 you've discovered https://openradar.appspot.com/radar?id=5025850143539200 - a Perhaps |
@bryankeller I think it is a bit different issue, it also reproduces with static cell sizes. In the example provided there are two cells 30 an 60 pixels hight, the heights are defined statically. I tried to investigate it - it does not seem to be an issue with section height calculation - it's all ok there, looks like it is something else. |
Ah yes, this does seem different - the bug that I linked to should only cause incorrect animations, not leave the layout in an incorrect state. I'm digging into this today. |
@evil159 see that PR for more information, and a workaround |
This issue, and the related one from the open radar, is fixed in |
Nice, thank you so much for looking into it 👍 |
Describe the bug
With quite simple setup(two sections - first one is empty, second has one cell with static height), after inserting an item into the collection view the inserted cell is overlayed over the existing one.
To Reproduce
Steps to reproduce the behavior:
contentInsets
to.zero
Expected behavior
Existing cell is pushed down by inserted cell.
Actual behaviour
Inserted cell is overlaid on top of existing cell.
Screenshots
![magazinelayout_i MagazineLayout.zip nsert_issue](https://user-images.githubusercontent.com/1478430/53867343-53198280-3ffc-11e9-83f5-3d39c0dd38a3.gif)
Smartphone (please complete the following information):
Additional context
If collection view's
contentInsets
have any kind of horizontal margins(evenUIEdgeInsets(top: 0, left: 1, bottom: 0, right: 1)
) - it does seems to help. Not sure why this is happening, I modified example app to show the issue. MagazineLayout.zipThe text was updated successfully, but these errors were encountered: