Skip to content

Commit 43de7e0

Browse files
Resizable: Fixed #4092 - preserveCursor option should be removed
1 parent 78e8a1b commit 43de7e0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ui/ui.resizable.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
243243
//Aspect Ratio
244244
this.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height) || 1);
245245

246-
if (o.preserveCursor) {
247-
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
248-
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
249-
}
246+
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
247+
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
250248

251249
this._propagate("start", event);
252250
return true;
@@ -309,8 +307,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
309307
if (this._helper && !o.animate) this._proportionallyResize();
310308
}
311309

312-
if (o.preserveCursor)
313-
$('body').css('cursor', 'auto');
310+
$('body').css('cursor', 'auto');
314311

315312
this._propagate("stop", event);
316313

@@ -514,7 +511,6 @@ $.extend($.ui.resizable, {
514511
maxWidth: null,
515512
minHeight: 10,
516513
minWidth: 10,
517-
preserveCursor: true,
518514
preventDefault: true,
519515
proportionallyResize: false,
520516
zIndex: 1000

0 commit comments

Comments
 (0)