From 6b02758278a51f6e974857a0e71db7ae4bf8fca8 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 23 Aug 2016 14:04:03 +0200 Subject: [PATCH] [FIX] web_tour: ideal tip location for html and body element When searching the ideal location for a tip on the body or the html element, the previous implementation was wrong. In that case, the ideal location is always the body. --- addons/web_tour/static/src/js/tip.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web_tour/static/src/js/tip.js b/addons/web_tour/static/src/js/tip.js index 9facb276027..3b2627abea8 100644 --- a/addons/web_tour/static/src/js/tip.js +++ b/addons/web_tour/static/src/js/tip.js @@ -118,6 +118,10 @@ var Tip = Widget.extend({ }, _get_ideal_location: function () { var $location = this.$anchor; + if ($location.is("html,body")) { + return $(document.body); + } + var o; var p; do {