Skip to content
This repository has been archived by the owner on Dec 13, 2017. It is now read-only.

Commit

Permalink
Merge pull request #63 from tirolerstefan/issue_56
Browse files Browse the repository at this point in the history
issue #56: fix huge grey labels
  • Loading branch information
cha55son committed Feb 14, 2016
2 parents b7c27e0 + 70d1d05 commit 8ca23a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/resources/static/js/lib/jquery.commitgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@
}
var textBBox = labels.getBBox();
var textPadding = 3, LRPadding = 3;

// issue #56: Display issue - huge grey box on Commit Graph
// modded by tirolerstefan (using hint of darkdams, thanks)
// https://github.com/cha55son/stash-commit-graph-plugin/issues/56#issuecomment-171966535
textBBox.height=14;
textBBox.x=0;
textBBox.y=-7;
textBBox.x2=startX;
textBBox.y2=7;
textBBox.width=startX;

// Draw the label box
var labelBox = this.paper
.rect(triXPos - textBBox.width - textPadding * 2 - LRPadding * 2,
Expand Down

0 comments on commit 8ca23a1

Please sign in to comment.