commit | 8909c5c2998a42987d8c4b05dedb695f11dfde5e | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Mon Apr 10 09:56:52 2017 -0700 |
committer | Simon Hunt <simon@onlab.us> | Mon Apr 10 20:11:16 2017 +0000 |
tree | 7d26a827fa2311267b3c8b6a07dd8922a2b3da79 | |
parent | a85a5d31b1ceb2869223a0866e6f60e01ea017b3 [diff] |
Topo2 - Fixed port label scale Change-Id: I61e8c0b3661e313980cf815c54350c594c32736f
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Host.js b/web/gui/src/main/webapp/app/view/topo2/topo2Host.js index 5688dc5..7a6a507 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2Host.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2Host.js
@@ -93,6 +93,8 @@ }, setScale: function () { + if (!this.el) return; + var dim = hostIconDim, multipler = 1;
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Link.js b/web/gui/src/main/webapp/app/view/topo2/topo2Link.js index fbdeab3..4897052 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2Link.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2Link.js
@@ -307,7 +307,7 @@ var labelScale = labelDim / (labelDim * t2zs.scale()); - d3.select('#topo2-portLabels') + d3.select('.topo2-portLabels') .selectAll('.portLabel') .selectAll('*') .style('transform', 'scale(' + labelScale + ')');