From 9fef02e4483bae2f252b8316b208aa392cb7e11b Mon Sep 17 00:00:00 2001 From: sgiehl <stefan@piwik.org> Date: Tue, 21 Oct 2014 11:14:50 +0200 Subject: [PATCH] fixes #6462 - set width only if it's none zero --- plugins/CoreHome/javascripts/dataTable.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js index 48796f2959..60b703ecbd 100644 --- a/plugins/CoreHome/javascripts/dataTable.js +++ b/plugins/CoreHome/javascripts/dataTable.js @@ -1315,7 +1315,10 @@ $.extend(DataTable.prototype, UIControl.prototype, { var width = 0; ul.find('li').each(function () { width = Math.max(width, $(this).width()); - }).width(width); + }); + if (width > 0) { + ul.find('li').width(width); + } close(); }, 400); } -- GitLab