I’ve been using jQuery Sortable for quite a while over various projects, and I’ve never encountered any strange behaviour. On my current project however, I had used the jQuery UI Sortable to allow the client to re-order some elements within an HTML list. Oddly though, whenever you scrolled down the page to get to the list, and dragged an element, the offset of the dragged element went a bit mad and flew up the page!
After a little of searching and investigating, I found out what was causing this. The front-end development had been done by our Front End Developer, and handed over to myself to work on. Within his generic CSS file was the property;
He, quite rightly, added this in so on IE browsers, if the content length changed dynamically, the page didn’t jump when the scrollbar appeared. Removing this properly from the pages stylesheet fixed the offset bug with jQuery UI Sortable.
Not quite sure why, I intend to investigate why this is happening within the coming weeks, but for now I hope posting this will make somebody else’s life a little easier!