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

Commit

Permalink
issue #56: fix huge grey labels
Browse files Browse the repository at this point in the history
  • Loading branch information
tirolerstefan committed Jan 28, 2016
1 parent 7abeed6 commit 70d1d05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.plugin.commitgraph</groupId>
<artifactId>commitgraph</artifactId>
<version>2.0</version>
<version>2.1</version>

<organization>
<name>Chason Choate</name>
Expand Down
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 @@ -150,6 +150,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 70d1d05

Please sign in to comment.