Skip to content

Commit

Permalink
don't let the track container get smaller than the window when hiding…
Browse files Browse the repository at this point in the history
… tracks
  • Loading branch information
rbuels committed May 24, 2012
1 parent b09c429 commit fee9e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/GenomeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ GenomeView.prototype.updateTrackList = function() {
nextTop += this.trackHeights[i] + this.trackPadding;
}

this.containerHeight = nextTop;
this.containerHeight = Math.max( nextTop, this.getHeight() );
this.scrollContainer.style.height = this.containerHeight + "px";

this.updateScroll();
Expand Down

0 comments on commit fee9e10

Please sign in to comment.