Skip to content

Commit 6b36f6a

Browse files
committed
Draggable: Set containment size after helper size change
1 parent 2de8604 commit 6b36f6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: ui/widgets/draggable.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,15 @@ $.widget( "ui.draggable", $.ui.mouse, {
208208
this._adjustOffsetFromHelper( o.cursorAt );
209209
}
210210

211-
//Set a containment if given in the options
212-
this._setContainment();
213-
214211
//Trigger event + callbacks
215212
if ( this._trigger( "start", event ) === false ) {
216213
this._clear();
217214
return false;
218215
}
219216

217+
//Set a containment if given in the options
218+
this._setContainment();
219+
220220
//Recache the helper size
221221
this._cacheHelperProportions();
222222

0 commit comments

Comments
 (0)