From bdcb960de216d3009ce28611237655075e6aa7e7 Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Fri, 11 Sep 2020 11:53:23 +0000 Subject: [PATCH] [FIX] web_tour: fix position of the tips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When tips show something outside of the screen (bottom), the hover will flicker the tooltip. Now the tooltip come on top of the tips, exactly like for the top. https://drive.google.com/file/d/1p3IGEAy2QekrykIqOzTzyJhmzjxbk5N7/view closes odoo/odoo#57572 X-original-commit: fd5b43336a11ade92b954c281e27a40d043df34f Related: odoo/design-themes#356 Signed-off-by: Jérémy Kersten (jke) --- addons/web_tour/static/src/js/tip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_tour/static/src/js/tip.js b/addons/web_tour/static/src/js/tip.js index 6dddc7e1739..d1c7ffaab08 100644 --- a/addons/web_tour/static/src/js/tip.js +++ b/addons/web_tour/static/src/js/tip.js @@ -409,7 +409,7 @@ var Tip = Widget.extend({ mbLeft -= (this.content_width - this.init_width); } if (!posVertical && overflow || this.info.position === "top") { - mbTop -= (this.content_height - this.init_height); + mbTop -= (this.viewPortState === 'down') ? this.init_height - 5 : (this.content_height - this.init_height); }