MooTools Sortables with horizontal list having problems

Posted by Anurag on Stack Overflow See other posts from Stack Overflow or by Anurag
Published on 2010-03-19T12:08:26Z Indexed on 2010/03/19 12:11 UTC
Read the original article Hit count: 381

Filed under:
|
|
|

I am having problems sorting list items using the Sortables class when the list items are displayed horizontally. Removing this style fixed everything:

display: inline

Created an example on jsfiddle.

This works. Check the stylesheet for .countries li - it does not display the list inline - http://jsfiddle.net/Wgpqw/

This does not work properly. I can drag the list items around the list, but the sort randomly happens when moving around - http://jsfiddle.net/Wgpqw/1/

I suspect it has something to do with the list element positioning in inline mode. Any help is greatly appreciated.

© Stack Overflow or respective owner

Related posts about mootools

Related posts about sortables