Commit 3c9ea7f4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7521 from hiroponz/fix-not-rendered-graph-edge

Fix not rendered the network graph edges
parents a8fc10e3 66c18eae
...@@ -90,11 +90,15 @@ class @BranchGraph ...@@ -90,11 +90,15 @@ class @BranchGraph
renderPartialGraph: -> renderPartialGraph: ->
start = Math.floor((@element.scrollTop() - @offsetY) / @unitTime) - 10 start = Math.floor((@element.scrollTop() - @offsetY) / @unitTime) - 10
start = 0 if start < 0 if start < 0
isGraphEdge = true
start = 0
end = start + 40 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 i = start
@prev_start = start @prev_start = start
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment