mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Resizable: Fixed #4092 - preserveCursor option should be removed
This commit is contained in:
parent
78e8a1b789
commit
43de7e0e50
@ -243,10 +243,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
||||
//Aspect Ratio
|
||||
this.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height) || 1);
|
||||
|
||||
if (o.preserveCursor) {
|
||||
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
|
||||
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
|
||||
}
|
||||
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
|
||||
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
|
||||
|
||||
this._propagate("start", event);
|
||||
return true;
|
||||
@ -309,8 +307,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
||||
if (this._helper && !o.animate) this._proportionallyResize();
|
||||
}
|
||||
|
||||
if (o.preserveCursor)
|
||||
$('body').css('cursor', 'auto');
|
||||
$('body').css('cursor', 'auto');
|
||||
|
||||
this._propagate("stop", event);
|
||||
|
||||
@ -514,7 +511,6 @@ $.extend($.ui.resizable, {
|
||||
maxWidth: null,
|
||||
minHeight: 10,
|
||||
minWidth: 10,
|
||||
preserveCursor: true,
|
||||
preventDefault: true,
|
||||
proportionallyResize: false,
|
||||
zIndex: 1000
|
||||
|
Loading…
Reference in New Issue
Block a user