Commit baaabcfa authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/scatterPlot.js: a clone without reads should not be displayed

Fix #2452/
Follows 07c8f886 and #2304.
parent b08d8ce4
...@@ -726,7 +726,9 @@ ScatterPlot.prototype = { ...@@ -726,7 +726,9 @@ ScatterPlot.prototype = {
height = clone.getSize()/bar_max; height = clone.getSize()/bar_max;
// Minimal height (does not affect y_pos) // Minimal height (does not affect y_pos)
var height_for_display = Math.max(height, 0.01) // A clone without reads is not displayed
// A clone with a small number of reads is displayed and has a minimal height
var height_for_display = height === 0 ? 0 : Math.max(height, 0.01)
var y_pos_for_display = y_pos + height_for_display ; var y_pos_for_display = y_pos + height_for_display ;
y_pos += height; y_pos += height;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment