fix computation of maxWidth in MenuItems

This commit is contained in:
rolux 2011-11-30 15:37:53 +01:00
parent 5dc9b1e45b
commit d6adc59d88

View file

@ -72,7 +72,9 @@ Ox.MenuItem = function(options, self) {
.append(
that.$title = $('<td>', {
'class': 'OxCell OxTitle',
css: self.options.maxWidth ? {maxWidth: self.options.maxWidth} : {},
css: self.options.maxWidth
? {maxWidth: self.options.maxWidth - 46}
: {},
html: Ox.isString(self.options.title[0])
? self.options.title[0]
: $('<div>').html(self.options.title[0]).html()