Fix end of the dependency was a little above than the pointer

_findPos use #listDependencies as reference, now _findCoordsForMouse
use it too.

FEA: ItEr75S08MigrationZK5
This commit is contained in:
Óscar González Fernández 2011-07-05 17:55:38 +02:00
parent ddc1a101a7
commit 92a5b2a27f

View file

@ -311,10 +311,10 @@ ganttz.UnlinkedDependencyComponent = zk.$extends(ganttz.DependencyComponentBase,
_updateArrow : function(event){
this.drawArrow_(this._getCoordOrigin(), this._findCoordsForMouse());
},
_findCoordsForMouse : function(){
var pos1 = YAHOO.util.Dom.getXY('listtasks');
return { left : this._WGTganttpanel.getXMouse() - pos1[0],
top: this._WGTganttpanel.getYMouse() - pos1[1]};
_findCoordsForMouse: function() {
var reference = jq('#listdependencies').offset();
return {left : this._WGTganttpanel.getXMouse() - reference.left,
top: this._WGTganttpanel.getYMouse() - reference.top};
},
_handleKeyUp: function(event){
if ( event.keyCode != 27 )