You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within ui-dialog there is a way to set the appendTo. I presumed it would feed the boundries to _makeDraggable as well. As I found out the containment of a dialog is set to 'document'.
I would suggest making an option which can be used to set the containment:
$( "selector" ).dialog( { containment: "foo" } );
The short-term solution to handle this is by extending the documentation by showing how containment can be set without editing sources:
$( "selector" ).dialog().dialog( "widget" ).draggable( { containment: "foo" } );
The text was updated successfully, but these errors were encountered:
This gets way too complicated because it also affects positioning. The current implementation supports the overwhelming majority of use cases. If you need fine grained control, you should do it yourself.
On a side note, this is not the place to suggest API changes, that would be http://bugs.jqueryui.com.
Within ui-dialog there is a way to set the appendTo. I presumed it would feed the boundries to _makeDraggable as well. As I found out the containment of a dialog is set to 'document'.
I would suggest making an option which can be used to set the containment:
$( "selector" ).dialog( { containment: "foo" } );
The short-term solution to handle this is by extending the documentation by showing how containment can be set without editing sources:
$( "selector" ).dialog().dialog( "widget" ).draggable( { containment: "foo" } );
The text was updated successfully, but these errors were encountered: