aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.sortable.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2010-03-11 16:57:10 +0000
committerRichard Worth <rdworth@gmail.com>2010-03-11 16:57:10 +0000
commite0faff7e11772a56c2037e4269834c65d4a5d305 (patch)
treeb8ba6f51d03208f477a1cee64482cab21f932f70 /ui/jquery.ui.sortable.js
parent1a487a18b725b46522b7ed24c261c69d81fcb005 (diff)
downloadjquery-ui-e0faff7e11772a56c2037e4269834c65d4a5d305.tar.gz
jquery-ui-e0faff7e11772a56c2037e4269834c65d4a5d305.zip
reverted r3888 un-fixing #5322 for now as trunk is in release candidate state - only criticals and blockers should be fixed until 1.8 is final
Diffstat (limited to 'ui/jquery.ui.sortable.js')
-rw-r--r--ui/jquery.ui.sortable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js
index 6b2573431..d29e708e8 100644
--- a/ui/jquery.ui.sortable.js
+++ b/ui/jquery.ui.sortable.js
@@ -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--) {