Skip to content

Commit

Permalink
Draggable: Set containment size after helper size change
Browse files Browse the repository at this point in the history
  • Loading branch information
velezh committed Dec 29, 2023
1 parent 2de8604 commit 6b36f6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/widgets/draggable.js
Expand Up @@ -208,15 +208,15 @@ $.widget( "ui.draggable", $.ui.mouse, {
this._adjustOffsetFromHelper( o.cursorAt );
}

//Set a containment if given in the options
this._setContainment();

//Trigger event + callbacks
if ( this._trigger( "start", event ) === false ) {
this._clear();
return false;
}

//Set a containment if given in the options
this._setContainment();

//Recache the helper size
this._cacheHelperProportions();

Expand Down

0 comments on commit 6b36f6a

Please sign in to comment.