[IMP] Tooltip placement
bzr revid: rim@openerp.com-20140508133931-3ffe66hwgnffvdqu
This commit is contained in:
parent
9967c9e19c
commit
0ab06fa991
|
@ -859,8 +859,9 @@ instance.web.Menu = instance.web.Widget.extend({
|
|||
$clicked_menu.parent().addClass('active');
|
||||
}
|
||||
}
|
||||
// add a tooltip to cropped menu items
|
||||
this.$secondary_menus.find('.oe_secondary_submenu li a span').each(function() {
|
||||
$(this).tooltip(this.scrollWidth > this.clientWidth? {title: $(this).text().trim()} :'destroy');
|
||||
$(this).tooltip(this.scrollWidth > this.clientWidth ? {title: $(this).text().trim(), placement: 'auto right'} :'destroy');
|
||||
});
|
||||
},
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue