[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#57572 X-original-commit: fd5b43336a11ade92b954c281e27a40d043df34f Related: odoo/design-themes#356 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
committed by
Jeremy Kersten
parent
ee8333e582
commit
bdcb960de2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user