[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.
This commit is contained in:
qsm-odoo
2016-08-25 15:13:43 +02:00
parent 35a286a38c
commit 6b02758278
+4
View File
@@ -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 {