diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-11-19 14:49:55 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-11-19 14:49:55 +0000 |
commit | fbde8766ba2dc3b70df1d4b95eefe316556bdae5 (patch) | |
tree | 9ebf18b2e7339edae85cc9b351285cce7abe214c /ui/ui.resizable.js | |
parent | 06e7783c93a92003adff093e564ce9a9e14bd014 (diff) | |
download | jquery-ui-fbde8766ba2dc3b70df1d4b95eefe316556bdae5.tar.gz jquery-ui-fbde8766ba2dc3b70df1d4b95eefe316556bdae5.zip |
resizable: Fixed preserveCursor, if the cursor is overriden in the stylesheet for the axes, it's maintained (fixes #3480)
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r-- | ui/ui.resizable.js | 6 |
1 files 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; |