Dialog: Fixed #3731: Contain dialogs within the document when dragging.

This commit is contained in:
Scott González 2009-01-03 05:25:48 +00:00
parent 03f0b95b52
commit 8b9312a064

View File

@ -285,6 +285,7 @@ $.widget("ui.dialog", {
cancel: '.ui-dialog-content', cancel: '.ui-dialog-content',
helper: options.dragHelper, helper: options.dragHelper,
handle: '.ui-dialog-titlebar', handle: '.ui-dialog-titlebar',
containment: 'document',
start: function() { start: function() {
(options.dragStart && options.dragStart.apply(self.element[0], arguments)); (options.dragStart && options.dragStart.apply(self.element[0], arguments));
}, },