Skip to content
Permalink
Browse files

sortable: fixed #5322 (helper position weird when axis was used, fixe…

…s sortable tabs demo)
  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Mar 11, 2010
1 parent 7799b4e commit 1a487a18b725b46522b7ed24c261c69d81fcb005
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.sortable.js
@@ -270,8 +270,8 @@ $.widget("ui.sortable", $.ui.mouse, {
this.positionAbs = this._convertPositionTo("absolute");

//Set the helper position
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';
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';

//Rearrange
for (var i = this.items.length - 1; i >= 0; i--) {

0 comments on commit 1a487a1

Please sign in to comment.
You can’t perform that action at this time.