mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Droppable: Account for draggable helper when calculating proportions.
This commit is contained in:
parent
2c9ee0252d
commit
0e96a50231
7
ui/jquery.ui.droppable.js
vendored
7
ui/jquery.ui.droppable.js
vendored
@ -72,14 +72,13 @@ $.widget( "ui.droppable", {
|
||||
/** draggable integration **/
|
||||
|
||||
_draggableStart: function( event, ui ) {
|
||||
var draggable = $( event.target );
|
||||
var draggable = ui.helper ? ui.helper[0] : event.target;
|
||||
|
||||
// TODO: Possibly move into draggable hash
|
||||
// so if there are multiple droppables, it's not recalculating all the time
|
||||
// TODO: Should this use the helper if it exists?
|
||||
this.draggableProportions = {
|
||||
width: draggable[0].offsetWidth,
|
||||
height: draggable[0].offsetHeight
|
||||
width: draggable.offsetWidth,
|
||||
height: draggable.offsetHeight
|
||||
};
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user