commit | aefd58618cb25173a9770199ee6859dc7fd9f51d | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Wed Oct 19 14:20:46 2016 -0500 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Oct 19 22:41:34 2016 +0000 |
tree | 19f12e296d518a432d2c9e4efb390cd210e2a567 | |
parent | 3b4ea058e487b9525594b416d82d681755aca2f0 [diff] |
ONOS-5531: Port Label bug Change-Id: I14e3b1c16de54b229f6823ffa199743d7a5308e8
diff --git a/web/gui/src/main/webapp/app/view/topo/topoLink.js b/web/gui/src/main/webapp/app/view/topo/topoLink.js index ca2982c..bfe0df5 100644 --- a/web/gui/src/main/webapp/app/view/topo/topoLink.js +++ b/web/gui/src/main/webapp/app/view/topo/topoLink.js
@@ -195,9 +195,9 @@ var offset = 32, pos = link.position, nearX = src ? pos.x1 : pos.x2, - nearY = src ? pos.y2 : pos.y1, + nearY = src ? pos.y1 : pos.y2, farX = src ? pos.x2 : pos.x1, - farY = src ? pos.y1 : pos.y2; + farY = src ? pos.y2 : pos.y1; function dist(x, y) { return Math.sqrt(x*x + y*y); }