[FIX] Fix some tipsy stuff

Autobound on 'n' fails with absolute positioned elements.

Make tipsy checks that it's element is still attached to another element

bzr revid: fme@openerp.com-20120209105401-1jl11sy9z1qdwu3t
This commit is contained in:
Fabien Meghazi
2012-02-09 11:54:01 +01:00
parent 1f189228b5
commit 0d7ff5dec8
2 changed files with 5 additions and 1 deletions
@@ -18,6 +18,10 @@
Tipsy.prototype = {
show: function() {
$('div.tipsy').stop().remove();
if (!this.$element.parent().length) {
return;
}
var title = this.getTitle();
if (title && this.enabled) {
var $tip = this.tip();
+1 -1
View File
@@ -867,7 +867,7 @@ openerp.web.form.Widget = openerp.web.OldWidget.extend(/** @lends openerp.web.fo
debug: openerp.connection.debug,
widget: widget
})},
gravity: $.fn.tipsy.autoBounds(50, 'n'),
gravity: $.fn.tipsy.autoBounds(50, 'nw'),
html: true,
opacity: 0.85,
trigger: 'hover'