scm: fix revision graph height is hard-coded (#9832)

Contributed by Jakob Skjerning.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8795 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-02-06 02:58:34 +00:00
parent 2ef86a2f0a
commit d2216bfe54
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@ function revisionGraph(holder, commits_hash) {
var LEFT_PADDING = 3, var LEFT_PADDING = 3,
TOP_PADDING = 10, TOP_PADDING = 10,
XSTEP = YSTEP = 20; XSTEP = 20;
var YSTEP = $$('tr.changeset')[0].getHeight();
var commits_by_scmid = $H(commits_hash), var commits_by_scmid = $H(commits_hash),
commits = commits_by_scmid.values(); commits = commits_by_scmid.values();