mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Contain resizing to the document. Fixes #4664 - uiDialog.resizable needs containment:'document' to agree with uiDialog.draggable.
Thanks AudreyT.
This commit is contained in:
parent
ec09afabb6
commit
33c16ae163
@ -340,6 +340,7 @@ $.widget("ui.dialog", {
|
|||||||
|
|
||||||
self.uiDialog.resizable({
|
self.uiDialog.resizable({
|
||||||
cancel: '.ui-dialog-content',
|
cancel: '.ui-dialog-content',
|
||||||
|
containment: 'document',
|
||||||
alsoResize: self.element,
|
alsoResize: self.element,
|
||||||
maxWidth: options.maxWidth,
|
maxWidth: options.maxWidth,
|
||||||
maxHeight: options.maxHeight,
|
maxHeight: options.maxHeight,
|
||||||
|
Loading…
Reference in New Issue
Block a user