fixing a few bugs with tool tip overflow

This commit is contained in:
BradBaker 2015-12-16 11:54:34 -08:00
parent cf0734b8cd
commit e0f8f2cdca
2 changed files with 10 additions and 3 deletions

View File

@ -55,9 +55,9 @@ legend.legend-style {
background-color: transparent; background-color: transparent;
font-weight: bold; font-weight: bold;
} }
.nvtooltip{ .nvtooltip {
position: relative; !important position: relative; !important
z-index: 10; z-index: 888;
} }
legend { legend {
@ -185,7 +185,7 @@ legend {
overflow: visible; /* This allows elements within these slice typesin a dashboard to overflow */ overflow: visible; /* This allows elements within these slice typesin a dashboard to overflow */
} }
.dashboard div.nvtooltip { .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 { .dashboard td.icons {
width: 50px; width: 50px;

View File

@ -217,6 +217,13 @@ function initializeDashboardView(dashboard_id) {
css = $(this).val(); css = $(this).val();
$("#user_style").html(css); $("#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 // Export public functions