diff options
author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2014-08-17 22:37:56 +0900 |
---|---|---|
committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2014-08-17 22:37:56 +0900 |
commit | 66c18eaeb3a63b277be9dc691eca194deee89045 (patch) | |
tree | 13dd90f249d677a7bbce25b75325d4a378f5e1c9 | |
parent | 54c20837032cb1bae03f9794cc39884224bf91d3 (diff) | |
download | gitlab-ce-66c18eaeb3a63b277be9dc691eca194deee89045.tar.gz |
Fix not rendered the network graph edge.
-rw-r--r-- | app/assets/javascripts/branch-graph.js.coffee | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/assets/javascripts/branch-graph.js.coffee b/app/assets/javascripts/branch-graph.js.coffee index f6d57bd55bb..349924f0d01 100644 --- a/app/assets/javascripts/branch-graph.js.coffee +++ b/app/assets/javascripts/branch-graph.js.coffee @@ -90,11 +90,15 @@ class BranchGraph renderPartialGraph: -> start = Math.floor((@element.scrollTop() - @offsetY) / @unitTime) - 10 - start = 0 if start < 0 + if start < 0 + isGraphEdge = true + start = 0 end = start + 40 - end = @commits.length if @commits.length < end + if @commits.length < end + isGraphEdge = true + end = @commits.length - if @prev_start == -1 or Math.abs(@prev_start - start) > 10 + if @prev_start == -1 or Math.abs(@prev_start - start) > 10 or isGraphEdge i = start @prev_start = start |