Skip to content

Commit

Permalink
add 2px of vertical padding to features in layout
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Aug 17, 2012
1 parent b550b2c commit 69379d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/JBrowse/View/Layout2.js
Expand Up @@ -9,6 +9,7 @@ return declare( null,
this.bitmap = [];
this.rectangles = {};
this.maxTop = 0;
this.vertPadding = 2; // pixels
},

/**
Expand All @@ -23,7 +24,7 @@ return declare( null,

var pLeft = Math.floor( left / this.pitchX );
var pRight = Math.floor( right / this.pitchX );
var pHeight = Math.floor( height / this.pitchY );
var pHeight = Math.ceil( (height+this.vertPadding) / this.pitchY );

var midX = Math.floor((pLeft+pRight)/2);
var rectangle = { id: id, l: pLeft, r: pRight, mX: midX, h: pHeight };
Expand Down

0 comments on commit 69379d2

Please sign in to comment.