Skip to content
Permalink
Browse files

resizable: Fixed preserveCursor, if the cursor is overriden in the st…

…ylesheet for the axes, it's maintained (fixes #3480)
  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Nov 19, 2008
1 parent 06e7783 commit fbde8766ba2dc3b70df1d4b95eefe316556bdae5
Showing with 4 additions and 2 deletions.
  1. +4 −2 ui/ui.resizable.js
@@ -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;

0 comments on commit fbde876

Please sign in to comment.
You can’t perform that action at this time.