Skip to content
Snippets Groups Projects
Commit f781a7ac authored by Mathieu Duckerts-Antoine's avatar Mathieu Duckerts-Antoine Committed by Vincent Schippefilt
Browse files

[IMP] web: graph legend always on top

parent c8f5cd71
No related branches found
No related tags found
No related merge requests found
......@@ -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($('<label/>', {
this.$el.prepend($('<label/>', {
text: this.title,
}));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment