Search and Top Navigation
#4664 closed bug (fixed)
Opened July 10, 2009 11:41AM UTC
Closed July 21, 2009 12:05AM UTC
uiDialog.resizable needs containment:'document' to agree with uiDialog.draggable.
Reported by: | audreyt | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8 |
Component: | ui.dialog | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
As users can't drag a dialog outside the document range, they shouldn't be able to resize a dialog outside the document range either.
This was reported by Tracy Ruggles at Socialtext and fixed by yours truly -- patch follows.
--- jquery-ui-1.7.2.custom.js
+++ jquery-ui-1.7.2.custom.js
@@ -2422,6 +2422,7 @@ $.widget("ui.dialog", {
this.uiDialog.resizable({
cancel: '.ui-dialog-content',
+ containment: 'document',
alsoResize: this.element,
maxWidth: options.maxWidth,
maxHeight: options.maxHeight,
Er, sorry, here is the patch again.