Skip to content

Commit

Permalink
fixing a few bugs with tool tip overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BradBaker committed Dec 16, 2015
1 parent cf0734b commit e0f8f2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions panoramix/static/panoramix.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ legend.legend-style {
background-color: transparent;
font-weight: bold;
}
.nvtooltip{
.nvtooltip {
position: relative; !important
z-index: 10;
z-index: 888;
}

legend {
Expand Down Expand Up @@ -185,7 +185,7 @@ legend {
overflow: visible; /* This allows elements within these slice typesin a dashboard to overflow */
}
.dashboard div.nvtooltip {
z-index: 1; /* this lets tool tips go on top of other slices */
z-index: 888; /* this lets tool tips go on top of other slices */
}
.dashboard td.icons {
width: 50px;
Expand Down
7 changes: 7 additions & 0 deletions panoramix/static/panoramix.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ function initializeDashboardView(dashboard_id) {
css = $(this).val();
$("#user_style").html(css);
});
$('li.widget').each(function() { /* this sets the z-index for left side boxes higher. */
current_row = $(this).attr('data-col');
$( this ).css('z-index', 100 - current_row);
});
$("div.chart").each(function() { /* this makes the whole chart fit within the dashboard div */
$(this).css('height', '95%');
});
}

// Export public functions
Expand Down

0 comments on commit e0f8f2c

Please sign in to comment.