summaryrefslogtreecommitdiff
path: root/addons/web_tour
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-09-11 11:53:23 +0000
committerJeremy Kersten <jke@odoo.com>2020-09-11 11:57:50 +0000
commitfd5b43336a11ade92b954c281e27a40d043df34f (patch)
tree0cc7f04d54992b5266ac579b5588bae97983ce78 /addons/web_tour
parent6de336990d8eb1667eefcc93701dd519cec7e16c (diff)
[FIX] web_tour: fix position of the tips
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#57563 Related: odoo/design-themes#355 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/web_tour')
-rw-r--r--addons/web_tour/static/src/js/tip.js2
1 files changed, 1 insertions, 1 deletions
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);
}