[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user