mirror of https://github.com/apache/superset.git
fixing a few bugs with tool tip overflow
This commit is contained in:
parent
cf0734b8cd
commit
e0f8f2cdca
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue