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( .append(
that.$title = $('<td>', { that.$title = $('<td>', {
'class': 'OxCell OxTitle', '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]) html: Ox.isString(self.options.title[0])
? self.options.title[0] ? self.options.title[0]
: $('<div>').html(self.options.title[0]).html() : $('<div>').html(self.options.title[0]).html()