From 5347ecd5ddb1803ec1c43240bafc84f5c427f855 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 26 Jan 2015 20:28:49 +0100 Subject: Add configtgz class. Fix dozens of bugs --- script/custom.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'script') diff --git a/script/custom.js b/script/custom.js index 12fe817e..675bf581 100644 --- a/script/custom.js +++ b/script/custom.js @@ -9,3 +9,19 @@ function loadContent(elem, source) } waitForIt(); } + +function forceTable(t) +{ + var pwidth = t.parent().innerWidth(); + t.width(pwidth - 5); + var rows = t.find('tr'); + var sum = 0; + rows.first().find('td').each(function (index) { + if (!$(this).hasClass('slx-width-ignore')) + sum += $(this).outerWidth(); + }); + var w = pwidth - (sum + 30); + rows.find('.slx-dyn-ellipsis').each(function (index) { + $(this).width(w).css('width', w + 'px').css('max-width', w + 'px'); + }); +} \ No newline at end of file -- cgit v1.2.3-55-g7522