[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:
@@ -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();
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user