Search and Top Navigation
#8540 closed feature (duplicate)
Opened August 31, 2012 08:04AM UTC
Closed March 12, 2013 01:02AM UTC
New Sortable option to specify horizontal or vertical floating mode
Reported by: | pierre_taillard | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.sortable | Version: | 1.8.21 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
I could be a little but useful feature: Give (to the sortable's user) the possibility to specify horizontal or vertical floating mode when creating sortable widget.
When you don't want to have items when sortable is initialized, floating mode is set by default to vertical :
jquery.ui.sortable.js - line 53
this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false;
Maybe an new option ('floating') which overrides the computing floating mode above should be helpful for addressing this case.
Regards