deanmcpherson / react-native-sortable-listview

Drag drop capable wrapper of ListView for React Native
MIT License
918 stars 235 forks source link

having a header or section header mess up the position calculation #50

Closed ravelab closed 7 years ago

ravelab commented 7 years ago

If I have a header that is about 2x the row itemHeight, when I drag a row to position 3, it seems to think I'm dragging to position 4. How do I account for the header height in the code? Thanks

mamidala commented 7 years ago

Am too facing same issue.

milesibastos commented 7 years ago

May you provide some code to reproduce this case?

chetstone commented 7 years ago

Should be fixed by f5c2ae0cc55f3d8c332ee3ba5b8d3eb568520739

femiveys commented 7 years ago

I have the same problem.

With a header, the dragging is wrong. When dragging the first item, it starts where the first item should be. Same for the second and so on.

How should I solve this?

I am on version 0.2.2