Andre Escudero
Andre Escudero

Reputation: 373

Jquery UI Sortable Safari Glitch

I have a sortable element using jQuery ui. It works fine on all browsers except Safari 5.1

In Safari, sometimes some of the rows being sorted get out of the table. Specially the middle rows. Drag them up and down and they show outside to the left of the table.

It only happens when I set the axis:y.

Here is an example of my code http://jsfiddle.net/7zJnv/7/

Upvotes: 1

Views: 1082

Answers (1)

j08691
j08691

Reputation: 207861

I'd skip the axis option and use the containment option instead.

$("#planItem-listBody").sortable({
        containment: "parent"
});​

jsFiddle example

Upvotes: 2

Related Questions