mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
resizable: Fixed preserveCursor, if the cursor is overriden in the stylesheet for the axes, it's maintained (fixes #3480)
This commit is contained in:
parent
06e7783c93
commit
fbde8766ba
@ -314,8 +314,10 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
||||
//Aspect Ratio
|
||||
o.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height)||1);
|
||||
|
||||
if (o.preserveCursor)
|
||||
$('body').css('cursor', this.axis + '-resize');
|
||||
if (o.preserveCursor) {
|
||||
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
|
||||
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
|
||||
}
|
||||
|
||||
this._propagate("start", event);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user