-
Notifications
You must be signed in to change notification settings - Fork 98
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
There is no way to show item divider properly #28
Comments
Are these screenshots taken during animation? (in which case the temporarily missing dividers are to be expected) |
Yes, all screenshots are taken during animation at the moment when dragged item in DragProxy state switches with other item. |
This list was built to be identical with the UITableView reorder behavior, which does same thing with the top/bottom border during reordering. |
I'm not familiar with UITableView, but I checked this behavior on ios 14 and got something average between what I described in this issue and actual package behavior. When you drag 2nd item down to switch with 3rd one you will get this: When you drag 3rd item up to switch with 2nd one you will get this: The difference is only in the second case. This all seems inconsistent and weird for me even on ios as there is only top border missing every time. It doesn't look like designed behavior but like a bug, because there is no symmetry. I hope there will be a way to customize this behavior. |
All lists on screenshots have initial order (1, 2, 3, 4, ...) before reordering. I increased divider thickness of the package example to make it more representative.
When you drag 2nd item down to switch with 3rd one you will get missing top border of 3rd item:
When you drag 3rd item up to switch with 2nd one you will get missing top borders of 2nd and 4th items:
I was able to fix some of the missing dividers by adding new item state. I changed item build function from:
to:
And got this result:
I guess there should be more item states to make it possible.
The text was updated successfully, but these errors were encountered: