Skip to content

Commit 0eb1106

Browse files
committed
Merge branch 'ddmanager-caches-wrong-dimensions' of https://github.com/EleotleCram/jquery-ui into EleotleCram-ddmanager-caches-wrong-dimensions
2 parents 3f8c608 + 86e6ed2 commit 0eb1106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.droppable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ $.ui.ddmanager = {
212212
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
213213
m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue
214214

215+
if(type == "mousedown") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables
216+
215217
m[i].offset = m[i].element.offset();
216218
m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight };
217219

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

222222
},

0 commit comments

Comments
 (0)