From 70d1d059d46751c971b7f49581903ab6eb706349 Mon Sep 17 00:00:00 2001 From: Stefan Felkel Date: Thu, 28 Jan 2016 06:29:40 +0100 Subject: [PATCH] issue #56: fix huge grey labels --- pom.xml | 2 +- .../resources/static/js/lib/jquery.commitgraph.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8c251da..d93c2cf 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.plugin.commitgraph commitgraph - 2.0 + 2.1 Chason Choate diff --git a/src/main/resources/static/js/lib/jquery.commitgraph.js b/src/main/resources/static/js/lib/jquery.commitgraph.js index 0a9915c..da55062 100644 --- a/src/main/resources/static/js/lib/jquery.commitgraph.js +++ b/src/main/resources/static/js/lib/jquery.commitgraph.js @@ -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,