Skip to content
Permalink
Browse files

Dailog: fixed #4254 - Dialog: undocumented dragHelper and resizeHelpe…

…r options should be removed
  • Loading branch information...
rdworth committed Feb 28, 2009
1 parent 5b00c21 commit df8d64a36a3e68c086ccc77130378c781e11904c
Showing with 7 additions and 1 deletion.
  1. +7 −1 ui/ui.dialog.js
@@ -293,20 +293,24 @@ $.widget("ui.dialog", {

_makeDraggable: function() {
var self = this,
options = this.options;
options = this.options,
heightBeforeDrag;

this.uiDialog.draggable({
cancel: '.ui-dialog-content',
helper: options.dragHelper,
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,13 +334,15 @@ $.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() {
(options.resize && options.resize.apply(self.element[0], arguments));
},
handles: resizeHandles,
stop: function() {
$(this).removeClass("ui-dialog-resizing");
(options.resizeStop && options.resizeStop.apply(self.element[0], arguments));
$.ui.dialog.overlay.resize();
}

0 comments on commit df8d64a

Please sign in to comment.
You can’t perform that action at this time.