Skip to content

Commit

Permalink
refs #2834 fix tables are too wide in db stats plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Mar 18, 2014
1 parent 88ed837 commit 9cd28f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/CoreHome/javascripts/dataTable.js
Expand Up @@ -297,7 +297,13 @@ $.extend(DataTable.prototype, UIControl.prototype, {
var minLabelWidth = 125;
var maxLabelWidth = 440;

var totalWidth = domElem.width();
var totalWidth = $(domElem).width();
var totalWidthTable = $('table.dataTable', domElem).width();

if (totalWidthTable < totalWidth) {
totalWidth = totalWidthTable;
}

var labelWidth = minLabelWidth;

var widthOfAllOtherColumns = 0;
Expand Down

0 comments on commit 9cd28f5

Please sign in to comment.