diff options
| author | Mathieu Duckerts-Antoine <dam@odoo.com> | 2019-08-08 09:00:36 +0000 |
|---|---|---|
| committer | Mathieu Duckerts-Antoine <dam@odoo.com> | 2019-08-08 09:00:36 +0000 |
| commit | 1e7f281070b9494dac0522a9bfc37a32d2453ef9 (patch) | |
| tree | edefd334b2e6123eb5cf7b59522f02c8b1e6ed08 /addons/web/static/src/js | |
| parent | d925a4557a270e3601947b748eca037e8690cc8e (diff) | |
[FIX] web: avoid graph flickering on firefox
The way in which graph tooltips were created and
positioned used to make the graph flicker on firefox.
This fix solves that problem by choosing a fixed initial
position for the tooltip before recompute it (when
the necessary information to choose a correct position
is available).
closes odoo/odoo#35552
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/views/graph/graph_renderer.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 f967c56a179..ea94020388f 100644 --- a/addons/web/static/src/js/views/graph/graph_renderer.js +++ b/addons/web/static/src/js/views/graph/graph_renderer.js @@ -160,7 +160,7 @@ return AbstractRenderer.extend({ measure: this.fields[this.state.measure].string, tooltipItems: tooltipItems, maxWidth: maxTooltipLabelWidth, - })); + })).css({top: '2px', left: '2px'}); const $container = this.$el.find('.o_graph_canvas_container'); $container.append(this.$tooltip); |
