Skip to content

Commit e0faff7

Browse files
committed
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
1 parent 1a487a1 commit e0faff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.sortable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ $.widget("ui.sortable", $.ui.mouse, {
270270
this.positionAbs = this._convertPositionTo("absolute");
271271

272272
//Set the helper position
273-
this.helper[0].style.left = this.options.axis == "y" ? this.originalPosition.left+'px' : this.position.left+'px';
274-
this.helper[0].style.top = this.options.axis == "x" ? this.originalPosition.top+'px' : this.position.top+'px';
273+
if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
274+
if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
275275

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

0 commit comments

Comments
 (0)