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:
parent
ddc1a101a7
commit
92a5b2a27f
1 changed files with 4 additions and 4 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue