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(
|
.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()
|
||||||
|
|
Loading…
Reference in a new issue