rniemeyer / knockout-sortable

A Knockout.js binding to connect observableArrays with jQuery UI sortable functionality
MIT License
548 stars 128 forks source link

sortable dissapears after first drop #190

Closed clearbucketLabs closed 6 years ago

clearbucketLabs commented 6 years ago

I see the example works fine, and i've swapped to using the same libraries but for some reason when i apply to my use case using bootstrap 3, after it's dragged once even if not dropped the top style coordinates start using the top of the window or screen meaning it goes from say top -100px or so to -2300px after it's dragged then stays that way until a page reload. i've tried adjusting parents to relative but still no go.

rniemeyer commented 6 years ago

@clearbucketLabs - do you have a way to create some type of reproduction that I could run?

clearbucketLabs commented 6 years ago

Seems like if window is scrolled down a bit, even a few px the offset is off, if scrolled right to the top it's perfect. it could be something else messing something up so i'll check and post an update first before wasting time.

clearbucketLabs commented 6 years ago

So it seems it's body { overflow-x: hidden;} that messed it up. i think it's there for mobile slide in menu. but removing it fixes the coordinates on chrome at least. odd.

rniemeyer commented 6 years ago

@clearbucketLabs - glad that you got it sorted out.