VPC UI, chart: Tweak for better alignment

This commit is contained in:
Brian Federle 2013-06-04 10:45:52 -07:00
parent a3b3753da3
commit 727c5bae9a
2 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,7 @@
color: #6E6B6B;
padding: 9px 1px 10px 20px;
background: #FFFFFF;
border: 1px dotted #808080;
border: 2px solid #CFCFCF;
position: absolute;
top: 42px;
left: 10px;

View File

@ -134,15 +134,16 @@
top: $router.position().top + ($router.outerHeight() / 2 + ($tier.index() * posStartOffsetTop)),
left: $router.position().left + $router.outerWidth()
};
var posStartWidth = 60 - (($tier.index() + 1) * posStartOffsetLeft);
var posStartWidth = 60 - ($tier.index() > 2 ? (($tier.index() + 1) * posStartOffsetLeft) : 0);
var posEndOffset = 15;
var posEndWidthOffset = 3;
var posEnd = {
top: $tier.position().top + ($tier.outerHeight() / 2),
left: posStart.left + posStartWidth + posEndOffset
};
var posEndWidth = Math.abs($tier.position().left -
(posStart.left + posStartWidth)) - posEndOffset;
(posStart.left + posStartWidth)) + posEndWidthOffset;
// Start line (next to router)
$connectorStart.css({