From e0f8f2cdcafe0ae2412c9b0086e2cd6e13078c96 Mon Sep 17 00:00:00 2001 From: BradBaker Date: Wed, 16 Dec 2015 11:54:34 -0800 Subject: [PATCH] fixing a few bugs with tool tip overflow --- panoramix/static/panoramix.css | 6 +++--- panoramix/static/panoramix.js | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/panoramix/static/panoramix.css b/panoramix/static/panoramix.css index ea0753f4dc..5d25b53b5e 100644 --- a/panoramix/static/panoramix.css +++ b/panoramix/static/panoramix.css @@ -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; diff --git a/panoramix/static/panoramix.js b/panoramix/static/panoramix.js index 9f28e83ed6..a408514017 100644 --- a/panoramix/static/panoramix.js +++ b/panoramix/static/panoramix.js @@ -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