Skip to content
Browse files
Draggable: Apply ui-draggable-dragging class prior to calculating dim…
…ensions. Fixes #8349 - Draggable: Incorrect dimensions used if .ui-draggable-dragging changes dimensions
  • Loading branch information
non4eg authored and scottgonzalez committed May 24, 2012
1 parent db9a015 commit a0c18ea
Showing 1 changed file with 3 additions and 1 deletion.
@@ -102,6 +102,8 @@ $.widget("ui.draggable", $.ui.mouse, {
//Create and append the visible helper
this.helper = this._createHelper(event);


//Cache the helper size

@@ -162,7 +164,7 @@ $.widget("ui.draggable", $.ui.mouse, {
if ($.ui.ddmanager && !o.dropBehaviour)
$.ui.ddmanager.prepareOffsets(this, event);


this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position

//If the ddmanager is used for droppables, inform the manager that dragging has started (see #5003)

0 comments on commit a0c18ea

Please sign in to comment.