Commit 63d269ac by Don Mitchell

draggable is not the collapsed item :-( but ui.helper seems to be.

parent 87d8598a
...@@ -87,7 +87,7 @@ $(document).ready(function() { ...@@ -87,7 +87,7 @@ $(document).ready(function() {
$('.unit').draggable({ $('.unit').draggable({
axis: 'y', axis: 'y',
handle: '.drag-handle', handle: '.drag-handle',
stack: '.unit', stack: '.unit, .id-holder',
start: initiateHesitate, start: initiateHesitate,
drag: checkHoverState, drag: checkHoverState,
stop: removeHesitate, stop: removeHesitate,
...@@ -296,7 +296,9 @@ function checkHoverState(event, ui) { ...@@ -296,7 +296,9 @@ function checkHoverState(event, ui) {
y1 = (draggable.positionAbs || draggable.position.absolute).top + (draggable.helperProportions.height / 2); y1 = (draggable.positionAbs || draggable.position.absolute).top + (draggable.helperProportions.height / 2);
$('.collapsed').each(function() { $('.collapsed').each(function() {
// don't expand the thing being carried // don't expand the thing being carried
if ($(draggable).is(this)) return; if (ui.helper.is(this)) {
return;
}
$.extend(this, {offset : $(this).offset()}); $.extend(this, {offset : $(this).offset()});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment