mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Dailog: fixed #4254 - Dialog: undocumented dragHelper and resizeHelper options should be removed
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user