fix computation of maxWidth in MenuItems
This commit is contained in:
parent
5dc9b1e45b
commit
d6adc59d88
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue