[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
This commit is contained in:
Gery Debongnie 2014-02-25 15:16:23 +01:00
parent fed81544ad
commit 47340431f9
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
.graph_main_content {
position: relative;
}
.graph_main_content td {
font-size: 12px;
margin: 45px;

View File

@ -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();
},