Skip to content

Commit

Permalink
fixed scrolling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmirob committed Mar 4, 2013
1 parent a7a9cfa commit 46562ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JBrowse/View/Track/HTMLFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,9 @@ var HTMLFeatures = declare( [ BlockBased, YScaleMixin, ExportMixin, FeatureDetai
var u = union (start, end, divStart, divEnd );
if ( u ) {
var coverageNode = makeDiv( u.s, u.e, parentDiv, masked );
parentDiv.booleanCovs.splice(parentDiv.booleanCovs.indexOf(parentDiv[key]), 1);
var tempIndex = parentDiv.booleanCovs.indexOf(parentDiv.childNodes[key]);
parentDiv.removeChild(parentDiv.childNodes[key]);
parentDiv.booleanCovs.splice(tempIndex, 1);
parentDiv.appendChild(coverageNode);
parentDiv.booleanCovs.push(coverageNode);
isAdded = true;
Expand Down Expand Up @@ -702,7 +703,6 @@ var HTMLFeatures = declare( [ BlockBased, YScaleMixin, ExportMixin, FeatureDetai
? feat.oldClassName
: feat.className;
feat.className = 'basic';
console.log(feat.booleanCovs.length, feat.childNodes.length);
}}
}}
},
Expand Down

0 comments on commit 46562ec

Please sign in to comment.