You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
When using event callbacks ([start](http://api.jqueryui.com/sortable/#event-start)/[update](http://api.jqueryui.com/sortable/#event-update)/[stop](http://api.jqueryui.com/sortable/#event-stop)...), avoid manipulating DOM elements (especially the one with the ng-repeat attached).
70
70
The suggested pattern is to use callbacks for emmiting events and altering the scope (inside the 'Angular world').
71
71
72
+
#### Floating
73
+
74
+
To have a smooth horizontal-list reordering, jquery.ui.sortable needs to detect the orientation of the list.
75
+
This detection takes place during the initialization of the plugin (and some of the checks include: whether the first item is floating left/right or if 'axis' parameter is 'x', etc).
76
+
There is also a [known issue](bugs.jqueryui.com/ticket/7498) about initially empty horizontal lists.
77
+
78
+
To provide a solution/workaround (till jquery.ui.sortable.refresh() also tests the orientation or a more appropriate method is provided), ui-sortable directive provides a `ui-floating` option as an extra to the [jquery.ui.sortable options](http://api.jqueryui.com/sortable/).
0 commit comments