mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
resizable: add ui-resizable-resizing class during resize
This commit is contained in:
parent
df8d64a36a
commit
517d5ab62c
@ -177,7 +177,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
|||||||
this._mouseDestroy();
|
this._mouseDestroy();
|
||||||
|
|
||||||
var _destroy = function(exp) {
|
var _destroy = function(exp) {
|
||||||
$(exp).removeClass("ui-resizable ui-resizable-disabled")
|
$(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing")
|
||||||
.removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
|
.removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -252,6 +252,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
|||||||
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
|
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
|
||||||
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
|
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
|
||||||
|
|
||||||
|
el.addClass("ui-resizable-resizing");
|
||||||
this._propagate("start", event);
|
this._propagate("start", event);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
@ -315,6 +316,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
|||||||
|
|
||||||
$('body').css('cursor', 'auto');
|
$('body').css('cursor', 'auto');
|
||||||
|
|
||||||
|
this.element.removeClass("ui-resizable-resizing");
|
||||||
|
|
||||||
this._propagate("stop", event);
|
this._propagate("stop", event);
|
||||||
|
|
||||||
if (this._helper) this.helper.remove();
|
if (this._helper) this.helper.remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user