]> source.dussan.org Git - jquery-ui.git/commitdiff
reverted r3888 un-fixing #5322 for now as trunk is in release candidate state - only...
authorRichard Worth <rdworth@gmail.com>
Thu, 11 Mar 2010 16:57:10 +0000 (16:57 +0000)
committerRichard Worth <rdworth@gmail.com>
Thu, 11 Mar 2010 16:57:10 +0000 (16:57 +0000)
ui/jquery.ui.sortable.js

index 6b257343197c6f11be35e587440360c4f2929aae..d29e708e8f3e36bc2c236214e3ed00cbcb86c065 100644 (file)
@@ -270,8 +270,8 @@ $.widget("ui.sortable", $.ui.mouse, {
                this.positionAbs = this._convertPositionTo("absolute");
 
                //Set the helper position
-               this.helper[0].style.left = this.options.axis == "y" ? this.originalPosition.left+'px' : this.position.left+'px';
-               this.helper[0].style.top = this.options.axis == "x" ? this.originalPosition.top+'px' : this.position.top+'px';
+               if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
+               if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
 
                //Rearrange
                for (var i = this.items.length - 1; i >= 0; i--) {