mirror of https://github.com/apache/cloudstack.git
VPC UI, chart: Tweak for better alignment
This commit is contained in:
parent
a3b3753da3
commit
727c5bae9a
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue