var sortable = $.data(this, 'sortable');\r
inst.sortables.push({\r
instance: sortable,\r
- offset: sortable.element.offset(),\r
- width: sortable.element.width(),\r
- height: sortable.element.height(),\r
shouldRevert: sortable.options.revert\r
});\r
- \r
+ sortable.refresh(); //Do a one-time refresh at start to refresh the containerCache \r
sortable.propagate("activate", e, inst);\r
}\r
});\r
\r
var l = o.left, r = l + o.width,\r
t = o.top, b = t + o.height;\r
- \r
+ \r
return (l < (this.positionAbs.left + this.offset.click.left) && (this.positionAbs.left + this.offset.click.left) < r\r
&& t < (this.positionAbs.top + this.offset.click.top) && (this.positionAbs.top + this.offset.click.top) < b); \r
};\r
\r
$.each(inst.sortables, function(i) {\r
\r
-\r
- if(checkPos.call(inst, {\r
- left: this.offset.left, top: this.offset.top,\r
- width: this.width, height: this.height\r
- })) {\r
+ if(checkPos.call(inst, this.instance.containerCache)) {\r
\r
//If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once\r
if(!this.instance.isOver) {\r