From f781a7acbbe305f09110e8d13c6451270e5596f0 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Tue, 2 Jul 2019 14:25:53 +0000 Subject: [IMP] web: graph legend always on top --- addons/web/static/src/js/views/graph/graph_renderer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/js/views/graph/graph_renderer.js b/addons/web/static/src/js/views/graph/graph_renderer.js index 6109877740b..f967c56a179 100644 --- a/addons/web/static/src/js/views/graph/graph_renderer.js +++ b/addons/web/static/src/js/views/graph/graph_renderer.js @@ -368,7 +368,8 @@ return AbstractRenderer.extend({ _getLegendOptions: function (datasetsCount) { var legendOptions = { display: datasetsCount <= MAX_LEGEND_LENGTH, - position: config.device.size_class > config.device.SIZES.VSM ? 'right' : 'top', + // position: this.state.mode === 'pie' ? 'right' : 'top', + position: 'top', onHover: this._onlegendTooltipHover.bind(this), onLeave: this._onLegendTootipLeave.bind(this), }; @@ -969,7 +970,7 @@ return AbstractRenderer.extend({ */ _renderTitle: function () { if (this.title) { - this.$('.o_graph_canvas_container').last().prepend($('