Skip to content

Commit

Permalink
BUG: Also apply barplot unit to border lens
Browse files Browse the repository at this point in the history
WHOOPS
  • Loading branch information
fedarko committed Nov 10, 2020
1 parent 8369083 commit 56552f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions empress/support_files/js/barplot-panel-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ define([
this.borderColor = Colorer.rgbToFloat([255, 255, 255]);

// ... and to having a length of whatever the default barplot layer
// length divided by 2 is :)
this.borderLength = BarplotLayer.DEFAULT_LENGTH / 2;
// length divided by 10 is :)
this.borderLength = BarplotLayer.DEFAULT_LENGTH / 10;

// Now, initialize the border options UI accordingly
this.initBorderOptions();
Expand Down
2 changes: 1 addition & 1 deletion empress/support_files/js/empress.js
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@ define([
) {
var borderColor = this._barplotPanel.borderColor;
var borderLength = this._barplotPanel.borderLength;
var maxD = prevLayerMaxD + borderLength;
var maxD = prevLayerMaxD + borderLength * this._barplotUnit;
// TODO: Should be changed when the ability to change the background
// color is added. Basically, we get a "freebie" if the border color
// matches the background color, and we don't need to draw anything --
Expand Down

0 comments on commit 56552f5

Please sign in to comment.