From 0df995c297ac4ee264230c3808d62f88d35bd74a Mon Sep 17 00:00:00 2001 From: Jim Robinson Date: Mon, 24 Jun 2019 13:09:06 -0700 Subject: [PATCH] feature packing bug --- dev/localSession.html | 13 +++++++++++-- js/feature/featureUtils.js | 4 ++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/dev/localSession.html b/dev/localSession.html index 38a708820..0bcf63f1e 100644 --- a/dev/localSession.html +++ b/dev/localSession.html @@ -22,9 +22,9 @@ - + @@ -32,6 +32,7 @@ + @@ -47,6 +48,7 @@ + @@ -105,6 +107,7 @@ + @@ -122,7 +125,7 @@ - + @@ -144,10 +147,16 @@ + + + + + + diff --git a/js/feature/featureUtils.js b/js/feature/featureUtils.js index c3cf478e9..a98c8ba1f 100644 --- a/js/feature/featureUtils.js +++ b/js/feature/featureUtils.js @@ -64,7 +64,6 @@ var igv = (function (igv) { bucket, feature, gap = 2, - packedRows = [], bucketStart; start = features[0].start; @@ -85,7 +84,8 @@ var igv = (function (igv) { row = 0; - while (allocatedCount < features.length && packedRows.length < maxRows) { + + while (allocatedCount < features.length && row <= maxRows) { while (nextStart <= end) {