Added missing Math.abs(...)
* This caused the .end line to be 0-length FEA: ItEr02S03MigracionZK5
This commit is contained in:
parent
887e358a24
commit
246663975c
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue