diff options
author | Richard Worth <rdworth@gmail.com> | 2009-02-28 21:21:45 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-02-28 21:21:45 +0000 |
commit | df8d64a36a3e68c086ccc77130378c781e11904c (patch) | |
tree | d3d761db8f9261cc06193ec29b9854a0d11bc002 /ui/ui.dialog.js | |
parent | 5b00c217190538fc1e03dcd69b1cadd3e66d5dc9 (diff) | |
download | jquery-ui-df8d64a36a3e68c086ccc77130378c781e11904c.tar.gz jquery-ui-df8d64a36a3e68c086ccc77130378c781e11904c.zip |
Dailog: fixed #4254 - Dialog: undocumented dragHelper and resizeHelper options should be removed
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r-- | ui/ui.dialog.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 29fdfabf8..10dc53f24 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -293,7 +293,8 @@ $.widget("ui.dialog", { _makeDraggable: function() { var self = this, - options = this.options; + options = this.options, + heightBeforeDrag; this.uiDialog.draggable({ cancel: '.ui-dialog-content', @@ -301,12 +302,15 @@ $.widget("ui.dialog", { handle: '.ui-dialog-titlebar', containment: 'document', start: function() { + heightBeforeDrag = options.height; + $(this).height($(this).height()).addClass("ui-dialog-dragging"); (options.dragStart && options.dragStart.apply(self.element[0], arguments)); }, drag: function() { (options.drag && options.drag.apply(self.element[0], arguments)); }, stop: function() { + $(this).removeClass("ui-dialog-dragging").height(heightBeforeDrag); (options.dragStop && options.dragStop.apply(self.element[0], arguments)); $.ui.dialog.overlay.resize(); } @@ -330,6 +334,7 @@ $.widget("ui.dialog", { minWidth: options.minWidth, minHeight: options.minHeight, start: function() { + $(this).addClass("ui-dialog-resizing"); (options.resizeStart && options.resizeStart.apply(self.element[0], arguments)); }, resize: function() { @@ -337,6 +342,7 @@ $.widget("ui.dialog", { }, handles: resizeHandles, stop: function() { + $(this).removeClass("ui-dialog-resizing"); (options.resizeStop && options.resizeStop.apply(self.element[0], arguments)); $.ui.dialog.overlay.resize(); } |