df8d64a
click here to add a description
click here to add a homepage
The official jQuery user interface library. — Read more
http://jqueryui.com/
This URL has Read+Write access
Dailog: fixed #4254 - Dialog: undocumented dragHelper and resizeHelper options should be removed
@@ -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,
+ $(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,
+ $(this).removeClass("ui-dialog-resizing");
(options.resizeStop && options.resizeStop.apply(self.element[0], arguments));
df8d64a