9cc3b2f13d316e768a4fc1095fb0ae4baa9ecb87 tdreszer Tue Aug 10 17:13:38 2010 -0700 Fixed bug affecting subtrack list DnD but not trackImage DnD diff --git src/hg/js/jquery.tablednd.js src/hg/js/jquery.tablednd.js index 92415c6..3ac962c 100644 --- src/hg/js/jquery.tablednd.js +++ src/hg/js/jquery.tablednd.js @@ -196,7 +196,7 @@ var docPos = this.getPosition(target); var mousePos = this.mouseCoords(ev); ///////return {x:mousePos.x - docPos.x, y:mousePos.y - docPos.y}; - return {x:mousePos.x - docPos.x, y:docPos.height/2}; ///////// This is modified by tim because of tall tracks. + return {x:mousePos.x - docPos.x, y:$(target).height()/2}; ///////// y offest is middle of row. Modified by tim because of tall tracks. }, /** Get the position of an element by going up the DOM tree and adding up all the offsets */