Skip to content

Commit

Permalink
refs #6821 Truncation of labels on datatables leads to labels changed…
Browse files Browse the repository at this point in the history
… to "..."
  • Loading branch information
tsteur committed Mar 13, 2015
1 parent fe85ab0 commit 92c6eb5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/CoreHome/javascripts/dataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1478,14 +1478,19 @@ $.extend(DataTable.prototype, UIControl.prototype, {
// higlight all columns on hover
$('td', domElem).hover(
function() {

if ($(this).hasClass('label')) {
return;
}

var table = $(this).closest('table');
var nthChild = $(this).parent('tr').children().index($(this)) + 1;
var rows = $('> tbody > tr', table);

if (!maxWidth[nthChild]) {
maxWidth[nthChild] = 0;
rows.find("td:nth-child(" + (nthChild) + ").column .value").each(function (index, element) {
var width = $(element).width();
var width = $(element).width();
if (width > maxWidth[nthChild]) {
maxWidth[nthChild] = width;
}
Expand Down

0 comments on commit 92c6eb5

Please sign in to comment.