Skip to content

Commit

Permalink
Horizontal bars not rendering in chrome 60+ or IE
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Aug 9, 2017
1 parent ebcc76f commit 1d58bec
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ function generateTableHtml(config){
percentage = ((parseFloat(val) - (column.dmin || 0)) / (column.dmax - (column.dmin || 0))) * 100;
}

if (val < column.flagBelow || val > column.flagAbove){
html += '<td ' + (showBar ? 'class="data-coloured-flagged ' + column.colId + '_' + column.name + ' "' : '') + '><div class="wrapper">' + (showBar ? '<span class="bar" style="width:' + percentage + '%;"></span>' : '') + '<span class="val">' + formattedVal + '</span></div></td>';
} else {
html += '<td ' + (showBar ? 'class="data-coloured ' + column.colId + '_' + column.name + ' "' : '') + '><div class="wrapper">' + (showBar ? '<span class="bar" style="width:' + percentage + '%;"></span>' : '') + '<span class="val">' + formattedVal + '</span></div></td>';
}
var doFlag = val < column.flagBelow || val > column.flagAbove;

// see this issue for the reason behind the manual height:
// https://github.com/ewels/MultiQC/issues/545
html += '<td style="height: 1px;" ' + (showBar ? 'class="data-coloured' + (doFlag ? '-flagged ' : ' ') + column.colId + '_' + column.name + ' "' : '') + '><div class="wrapper">' + (showBar ? '<span class="bar" style="width:' + percentage + '%;"></span>' : '') + '<span class="val">' + formattedVal + '</span></div></td>';
}
else {
html += '<td>ND</td>';
Expand Down

0 comments on commit 1d58bec

Please sign in to comment.