From 47340431f934c071a52ac1e908367fdc6d24882e Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Tue, 25 Feb 2014 15:16:23 +0100 Subject: [PATCH] [FIX] fixes the tooltip position in chart mode (graph view). The position was wrong because the parent position was not 'relative'. (addon web_graph) bzr revid: ged@openerp.com-20140225141623-cawr7yur38zhjcz4 --- addons/web_graph/static/src/css/graph.css | 4 ++++ addons/web_graph/static/src/js/graph_widget.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/addons/web_graph/static/src/css/graph.css b/addons/web_graph/static/src/css/graph.css index b7d82597c4c..2213f655a6b 100644 --- a/addons/web_graph/static/src/css/graph.css +++ b/addons/web_graph/static/src/css/graph.css @@ -1,3 +1,7 @@ +.graph_main_content { + position: relative; +} + .graph_main_content td { font-size: 12px; margin: 45px; diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js index f9d508c08b6..b4f06aee3f1 100644 --- a/addons/web_graph/static/src/js/graph_widget.js +++ b/addons/web_graph/static/src/js/graph_widget.js @@ -171,8 +171,10 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({ if (mode === 'pivot') { this.$('.graph_heatmap label').removeClass('disabled'); + this.$('.graph_main_content').css('position', 'inherit') } else { this.$('.graph_heatmap label').addClass('disabled'); + this.$('.graph_main_content').css('position', 'relative') } this.display_data(); },