Skip to main content

Search and Top Navigation

#7918 closed bug (duplicate)

Opened November 28, 2011 08:34AM UTC

Closed November 28, 2011 01:12PM UTC

Last modified November 28, 2011 01:12PM UTC

Setting "this.floating" property on empty containers

Reported by: shareyourlocationsite Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.sortable Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:
Description

In the _create function of the sortable plugin, the floating property is set with this line;

//Let's determine if the items are being displayed horizontally
this.floating = this.items.length ? o.axis === 'x' || (/left|right/).test(this.items[0].item.css('float')) || (/inline|table-cell/).test(this.items[0].item.css('display')) : false;

But if the container is empty there will be no items. And the this.floating will be set to false.

Can you add a an option for it. Something like;

$("#container").sortable({
  floating: true
});
Attachments (0)
Change History (2)

Changed November 28, 2011 01:12PM UTC by scottgonzalez comment:1

resolution: → duplicate
status: newclosed

Changed November 28, 2011 01:12PM UTC by scottgonzalez comment:2

Duplicate of #7498.