From 83413674a5cf65a1bf22327f7313a1a629dd22d7 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 2 Oct 2012 16:46:31 +0200 Subject: [PATCH] fix for chrome 22 menu table cell truncation bug --- source/Ox.UI/css/Ox.UI.css | 2 -- source/Ox.UI/js/Menu/MenuItem.js | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/css/Ox.UI.css b/source/Ox.UI/css/Ox.UI.css index 6b6921e1..a20e2980 100644 --- a/source/Ox.UI/css/Ox.UI.css +++ b/source/Ox.UI/css/Ox.UI.css @@ -1692,8 +1692,6 @@ Menus } .OxMenu .OxItem .OxCell.OxTitle { padding-left: 4px; - text-overflow: ellipsis; - overflow: hidden; white-space: nowrap; } .OxMenu .OxItem .OxCell.OxModifiers { diff --git a/source/Ox.UI/js/Menu/MenuItem.js b/source/Ox.UI/js/Menu/MenuItem.js index 9777c7a9..d4671e21 100644 --- a/source/Ox.UI/js/Menu/MenuItem.js +++ b/source/Ox.UI/js/Menu/MenuItem.js @@ -89,7 +89,11 @@ Ox.MenuItem = function(options, self) { .addClass('OxCell OxTitle') .css( self.options.maxWidth - ? {maxWidth: self.options.maxWidth - 46} + ? { + maxWidth: self.options.maxWidth - 46, + textOverflow: 'ellipsis', + overflow: 'hidden' + } : {} ) .html(