r968 - trunk/ui
r968 - trunk/ui
Author: paul.bakaus
Date: Wed Nov 19 06:49:55 2008
New Revision: 968
Modified:
trunk/ui/ui.resizable.js
Log:
resizable: Fixed preserveCursor, if the cursor is overriden in the
stylesheet for the axes, it's maintained (fixes #3480)
Modified: trunk/ui/ui.resizable.js
==============================================================================
--- trunk/ui/ui.resizable.js (original)
+++ trunk/ui/ui.resizable.js Wed Nov 19 06:49:55 2008
@@ -314,8 +314,10 @@
//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;