Draggable: Set containment size after helper size change

This commit is contained in:
vadim velezh 2023-12-29 20:38:45 +02:00
parent 2de8604b67
commit 6b36f6afe2

View File

@ -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();