Merge pull request #2769 from hiroponz/fix-not-showing-tooltip
Fix not showing tooltip on network graph
This commit is contained in:
commit
5ee8c132a5
6
vendor/assets/javascripts/branch-graph.js
vendored
6
vendor/assets/javascripts/branch-graph.js
vendored
|
@ -65,15 +65,15 @@
|
||||||
|
|
||||||
BranchGraph.prototype.buildGraph = function(){
|
BranchGraph.prototype.buildGraph = function(){
|
||||||
var graphWidth = $(this.element).width()
|
var graphWidth = $(this.element).width()
|
||||||
, ch = this.mspace * 20 + 20
|
, ch = this.mspace * 20 + 100
|
||||||
, cw = Math.max(graphWidth, this.mtime * 20 + 20)
|
, cw = Math.max(graphWidth, this.mtime * 20 + 260)
|
||||||
, r = Raphael(this.element.get(0), cw, ch)
|
, r = Raphael(this.element.get(0), cw, ch)
|
||||||
, top = r.set()
|
, top = r.set()
|
||||||
, cuday = 0
|
, cuday = 0
|
||||||
, cumonth = ""
|
, cumonth = ""
|
||||||
, offsetX = 20
|
, offsetX = 20
|
||||||
, offsetY = 60
|
, offsetY = 60
|
||||||
, barWidth = Math.max(graphWidth, this.dayCount * 20 + 80);
|
, barWidth = Math.max(graphWidth, this.dayCount * 20 + 320);
|
||||||
|
|
||||||
this.raphael = r;
|
this.raphael = r;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue