Skip to content

Commit

Permalink
Closes-Bug:#1455163,Closes-Bug:#1456152
Browse files Browse the repository at this point in the history
1) Added ‘Move’ cursor for pannable area, ‘Grab/grabbing’ cursor for nodes, ‘default’ cursor to identify which area in the view portion is pannable - For bug 1455163

2) Increased svg area to 2000x2000 pixels by default to accomodate the unpredictable length of links. Also increasing further more in case the canvas size is more than 2000px (may happen when there are more than 20 VMs, for example)

Change-Id: I1972bfd47d13bb0d5d21e6ae2a773c3c69c98a86
  • Loading branch information
vishnuvv committed May 23, 2015
1 parent bd1a354 commit 2534f89
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions webroot/css/contrail.custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -1737,11 +1737,31 @@ color: #b94a48;
.font-element i.icon-contrail-virtual-machine, .font-element i.icon-contrail-virtual-machine-left, .font-element i.icon-contrail-virtual-machine-right {
font-size: 20px;
}
/*Style for the underlay topology svg elements*/
.topology-visualization svg {
cursor:move;
height: auto !important;
width: auto !important;
}

.topology-visualization svg g.element {
cursor:default;
cursor:grab;
cursor:-webkit-grab;
cursor:-moz-grab;
}

.topology-visualization svg g.element:active {
cursor:default;
cursor:grabbing;
cursor:-webkit-grabbing;
cursor:-moz-grabbing;
}

.topology-visualization .connection-wrap{
cursor:default;
}

.topology-visualization svg text {
font-size: 10px;
font-weight:200;
Expand Down

0 comments on commit 2534f89

Please sign in to comment.