From fbde8766ba2dc3b70df1d4b95eefe316556bdae5 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Wed, 19 Nov 2008 14:49:55 +0000 Subject: [PATCH] resizable: Fixed preserveCursor, if the cursor is overriden in the stylesheet for the axes, it's maintained (fixes #3480) --- ui/ui.resizable.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index 3f5b0fb8c..8707cf862 100644 --- a/ui/ui.resizable.js +++ b/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;