From 92a5b2a27f036963e3cc9a3c9e99569cba33d32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Gonz=C3=A1lez=20Fern=C3=A1ndez?= Date: Tue, 5 Jul 2011 17:55:38 +0200 Subject: [PATCH] Fix end of the dependency was a little above than the pointer _findPos use #listDependencies as reference, now _findCoordsForMouse use it too. FEA: ItEr75S08MigrationZK5 --- .../main/resources/web/js/ganttz/DependencyComponent.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js b/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js index e2bf09b1a..871460d2c 100644 --- a/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js +++ b/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js @@ -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 )