mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Adding support for containment
This commit is contained in:
parent
2802058ba8
commit
73dd7818b1
@ -95,7 +95,8 @@ $.widget( "ui.dialog", {
|
||||
open: null,
|
||||
resize: null,
|
||||
resizeStart: null,
|
||||
resizeStop: null
|
||||
resizeStop: null,
|
||||
containment: "document"
|
||||
},
|
||||
|
||||
sizeRelatedOptions: {
|
||||
@ -547,7 +548,7 @@ $.widget( "ui.dialog", {
|
||||
this.uiDialog.draggable( {
|
||||
cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",
|
||||
handle: ".ui-dialog-titlebar",
|
||||
containment: "document",
|
||||
containment: options.containment,
|
||||
start: function( event, ui ) {
|
||||
that._addClass( $( this ), "ui-dialog-dragging" );
|
||||
that._blockFrames();
|
||||
|
Loading…
Reference in New Issue
Block a user