[IMP] web: graph legend always on top
This commit is contained in:
committed by
Vincent Schippefilt
parent
c8f5cd71ed
commit
f781a7acbb
@@ -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,
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user