Whoops -- missing case

This commit is contained in:
hppeng 2022-06-23 07:43:32 -07:00
parent e0f2dde953
commit b5f05cb1e6

View file

@ -75,7 +75,7 @@ function construct_AT(elem, tree) {
if (parent_node.display.col > node.display.col && (parent_node.display.row != node.display.row)) {
connector.classList.add("rotate-180");
}
else {//if (parent_node.display.col < node.display.col && (parent_node.display.row != node.display.row)) {
else if (parent_node.display.col < node.display.col && (parent_node.display.row != node.display.row)) {
connector.classList.add("rotate-270");
}
resolve_connector(document.getElementById("atree-row-" + parent_node.display.row).children[node.display.col]);