aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-03 05:25:48 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-03 05:25:48 +0000
commit8b9312a064f6fc65b2a08649e0e2383dbf434772 (patch)
tree7b854197d98261e331570441507df8072a0c107b /ui
parent03f0b95b52f51e3190a6c429c036fa5f1e6d643f (diff)
downloadjquery-ui-8b9312a064f6fc65b2a08649e0e2383dbf434772.tar.gz
jquery-ui-8b9312a064f6fc65b2a08649e0e2383dbf434772.zip
Dialog: Fixed #3731: Contain dialogs within the document when dragging.
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.dialog.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index 824f8d29f..b7fee7e7e 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -285,6 +285,7 @@ $.widget("ui.dialog", {
cancel: '.ui-dialog-content',
helper: options.dragHelper,
handle: '.ui-dialog-titlebar',
+ containment: 'document',
start: function() {
(options.dragStart && options.dragStart.apply(self.element[0], arguments));
},