From d6adc59d88a589921a419d984aefb3007e6e65c2 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 30 Nov 2011 15:37:53 +0100 Subject: [PATCH] fix computation of maxWidth in MenuItems --- source/Ox.UI/js/Menu/Ox.MenuItem.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Menu/Ox.MenuItem.js b/source/Ox.UI/js/Menu/Ox.MenuItem.js index f0c60e6a..5afd74af 100644 --- a/source/Ox.UI/js/Menu/Ox.MenuItem.js +++ b/source/Ox.UI/js/Menu/Ox.MenuItem.js @@ -72,7 +72,9 @@ Ox.MenuItem = function(options, self) { .append( that.$title = $('', { '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] : $('
').html(self.options.title[0]).html()