Added missing Math.abs(...)

* This caused the .end line to be 0-length

FEA: ItEr02S03MigracionZK5
This commit is contained in:
Farruco Sanjurjo 2010-09-03 10:47:35 +02:00
parent 887e358a24
commit 246663975c

View file

@ -142,9 +142,11 @@ ganttz.DependencyComponentBase = zk.$extends(zk.Widget,{
depmid.css(depmidcss);
var depend = this._findImageElement('end');
depend.css({top : yend, left : xorig, width : width});
var dependcss = {top : yend, left : xorig};
if(width < 0) dependcss.width = Math.abs(width);
depend.css(dependcss);
if (width < 0) depend.css({left : xend + 'px', width : width + 'px'});
if (width < 0) depend.css({left : xend, width : width});
var deparrow = this._findImageElement('arrow');
var deparrowsrc, deparrowcss;