Skip to content

Commit

Permalink
Droppable: enabled and accepting droppables are now activated prior t…
Browse files Browse the repository at this point in the history
…o evaluating their geometry. Fixes #7104 Droppable: if activeClass changes the geometry of a droppable, then dnd uses the wrong geometry.

(cherry picked from commit 86e6ed2)
  • Loading branch information
EleotleCram authored and scottgonzalez committed Mar 11, 2011
1 parent 6bd5c08 commit c5b0a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.droppable.js
Expand Up @@ -212,11 +212,11 @@ $.ui.ddmanager = {
for (var j=0; j < list.length; j++) { if(list[j] == m[i].element[0]) { m[i].proportions.height = 0; continue droppablesLoop; } }; //Filter out elements in the current dragged item
m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue

if(type == "mousedown") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables

m[i].offset = m[i].element.offset();
m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight };

if(type == "mousedown") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables

}

},
Expand Down

0 comments on commit c5b0a86

Please sign in to comment.