summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-24 19:22:11 -0400
committertkimia <tkimia@purdue.edu>2014-04-24 19:22:11 -0400
commit7de35332168374c176915cfeced61acc11f0ec8e (patch)
tree16e557c2232c69f7cf9cbcca7fc3489bf05272d6 /lib
parentafaf547a9685be8fd15c4496c3c1716e717b3fd7 (diff)
again, small changes
Diffstat (limited to 'lib')
-rw-r--r--lib/scheduling/elimination.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scheduling/elimination.rb b/lib/scheduling/elimination.rb
index 0e93f7a..eedeb52 100644
--- a/lib/scheduling/elimination.rb
+++ b/lib/scheduling/elimination.rb
@@ -113,7 +113,7 @@ STRING
t = 1
while t <= numTeams
color = (matches[i].teams[t-1] and matches[i].teams[t-1].users.include?(current_user)) ? "#5BC0DE" : "white"
- str += "\t\t<rect width=\"#{rw-5}%\" height=\"#{rh*Float(30)/(matchHeight)}%\" x=\"#{rx + 2.5}%\" y=\"#{ry + (Float(t-1)/numTeams)*rh + 2 }%\" fill=\"#{color}\" />\n"
+ str += "\t\t<rect width=\"#{rw-5}%\" height=\"#{rh*Float(30)/(matchHeight)}%\" x=\"#{rx + 2.5}%\" y=\"#{ry + (Float(t-1)/numTeams)*rh + 1 }%\" fill=\"#{color}\" />\n"
if matches[i].teams[t-1]
str += "\t\t<text x=\"#{rx + rw/4}%\" y=\"#{ry + (Float(t-1)/numTeams + Float(30)/(matchHeight))*rh}%\" font-size=\"200%\">Team #{matches[i].teams[t-1].id}</text>\n"
end