Skip to content

Commit

Permalink
Quick-fix of left-margin creep bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Norling committed May 28, 2018
1 parent f66e124 commit 9ca09ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/js/factory.coveragePlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,10 @@
var width = 0;
for (var i = 0; i < axes.y.length; i++) {
// 3 pixels extra for antialiasing
width = ctx.measureText(axes.y[i]).width+3;
width = ctx.measureText(axes.y[i]).width + 3 + settings.spacing;
if (width > settings.margins.l)
settings.margins.l = width;
}
settings.margins.l += settings.spacing;
settings.margins.b = settings.fontSize + settings.spacing + settings.annotationSpace;
settings.margins.t = settings.fontSize + settings.spacing;

Expand Down

0 comments on commit 9ca09ab

Please sign in to comment.