Changes between Initial Version and Version 1 of Ticket #5656, comment 1


Ignore:
Timestamp:
Dec 24, 2010, 10:08:17 AM (9 years ago)
Author:
wael34218
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5656, comment 1

    initial v1  
    1 I fixed it using the following changes:
    2 
    3 in ui.sortable.js
    4 change "getDragHorizontalDirection" function to:
    5 
    6 _getDragHorizontalDirection: function() {
    7                 var delta = this.positionAbs.left - this.lastPositionAbs.left;
    8                 if(this.floatingdirection == "left")
    9                         return delta != 0 && (delta > 0 ? "right" : "left");
    10                 else
    11                         return delta != 0 && (delta > 0 ? "left" : "right");
    12         }
    13 
    14 and define this.floatingdirection in constructor function "_init" by adding the following line:
    15 
    16 this.floatingdirection = this.items[0].item.css('float');