Bug Tracker

Changeset 3858

Show
Ignore:
Timestamp:
11/19/07 17:19:13 (1 year ago)
Author:
aaronchi
Message:

fix drop directions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/fx/experimental/fx.drop.js

    r3855 r3858  
    1313      var s = $.ec.findSides(el), ref = { left: s[0], right: s[0], up: s[1], down: s[1] }; 
    1414      props.push(ref[direction]); // Add side to props 
    15       var motion = (ref[direction] == 'top' || ref[direction] == 'left') ? 'pos' : 'neg'; 
    16       var distance = o.options.distance || (ref == 'top' ? (el.height() / 2) : (el.width() / 2)); 
     15      var motion = (direction == 'down' || direction == 'left') ? 'pos' : 'neg'; 
     16      var distance = o.options.distance || ((direction == 'up' || direction == 'down') ? (el.height() / 2) : (el.width() / 2)); 
    1717      var shift = parseInt(el.css(ref[direction])) || 0; 
    1818