[IMP] Tooltip placement

bzr revid: rim@openerp.com-20140508133931-3ffe66hwgnffvdqu
This commit is contained in:
Richard Mathot (OpenERP) 2014-05-08 15:39:31 +02:00
parent 9967c9e19c
commit 0ab06fa991
1 changed files with 2 additions and 1 deletions

View File

@ -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');
});
},
/**