diff --git a/public/javascripts/revision_graph.js b/public/javascripts/revision_graph.js index c967e59..071f39d 100644 --- a/public/javascripts/revision_graph.js +++ b/public/javascripts/revision_graph.js @@ -52,6 +52,11 @@ function branchGraph(holder) { var textbox = t.getBBox(); t.translate(textbox.width / 2, textbox.height / -3); + + var reqWidth = x+5 + textbox.width; + if (reqWidth > r.width) { + r.setSize(reqWidth, r.height); + } } for (var j = 0, jj = commits[i].parents.length; j < jj; j++) { var c = comms[commits[i].parents[j][0]];