Template:Team:Bonn:NetworkBottom
From 2013.igem.org
(Difference between revisions)
Line 152: | Line 152: | ||
nodeTitle[i].top = node[i].top+general.cheight; | nodeTitle[i].top = node[i].top+general.cheight; | ||
nodeTitle[i].style.top = nodeTitle[i].top +"px"; | nodeTitle[i].style.top = nodeTitle[i].top +"px"; | ||
- | if(general.type == "child") { | + | if(general.parentID) { |
- | + | nodeTitle[i].left = node[i].left; | |
- | + | nodeTitle[i].style.textAlign = "left"; | |
- | + | } else { | |
- | + | if(general.type == "child") { | |
- | + | nodeTitle[i].left = node[i].left-100; | |
- | + | nodeTitle[i].style.textAlign = "right"; | |
+ | } else { | ||
+ | nodeTitle[i].left = node[i].left; | ||
+ | nodeTitle[i].style.textAlign = "left"; | ||
+ | } | ||
+ | } | ||
nodeTitle[i].style.left = nodeTitle[i].left+"px"; | nodeTitle[i].style.left = nodeTitle[i].left+"px"; | ||
if(general.parent) { | if(general.parent) { |
Revision as of 11:37, 27 October 2013