]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Contain resizing to the document. Fixes #4664 - uiDialog.resizable needs...
authorScott González <scott.gonzalez@gmail.com>
Tue, 21 Jul 2009 00:03:39 +0000 (00:03 +0000)
committerScott González <scott.gonzalez@gmail.com>
Tue, 21 Jul 2009 00:03:39 +0000 (00:03 +0000)
Thanks AudreyT.

ui/ui.dialog.js

index b0c2d4545777cdb235937df75b5302dff21c0e58..299f744b821db871918447cc5fff2d8ef922e6d0 100644 (file)
@@ -340,6 +340,7 @@ $.widget("ui.dialog", {
 
                self.uiDialog.resizable({
                        cancel: '.ui-dialog-content',
+                       containment: 'document',
                        alsoResize: self.element,
                        maxWidth: options.maxWidth,
                        maxHeight: options.maxHeight,