Skip to content

Commit

Permalink
remove notion of padding from the rect layout; let tracks worry about…
Browse files Browse the repository at this point in the history
… padding
  • Loading branch information
rbuels committed Nov 16, 2012
1 parent f49f239 commit 708358f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/JBrowse/View/GranularRectLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ return declare( null,
this.rectangles = {};
this.maxTop = 0;
this.pTotalHeight = 0; // total height, in units of bitmap squares (px/pitchY)
this.vertPadding = 2; // pixels
},

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

var pLeft = Math.floor( left / this.pitchX );
var pRight = Math.floor( right / this.pitchX );
var pHeight = Math.ceil( (height+this.vertPadding) / this.pitchY );
var pHeight = Math.ceil( height / 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 708358f

Please sign in to comment.