From 40c112d42922c14063759d381f834724f22a340d Mon Sep 17 00:00:00 2001 From: tkimia Date: Mon, 28 Apr 2014 22:54:35 -0400 Subject: made svg smaller --- lib/scheduling/elimination.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/scheduling/elimination.rb') diff --git a/lib/scheduling/elimination.rb b/lib/scheduling/elimination.rb index 4518cff..73aefb4 100644 --- a/lib/scheduling/elimination.rb +++ b/lib/scheduling/elimination.rb @@ -52,6 +52,7 @@ module Scheduling # height of SVG matchHeight = 50*logBase; height = [(matchHeight+50) * logBase**(depth-1) + 100, 500].max; + height = height/2; str = <<-STRING \n" if matches[i].teams[t-1] - str += "\t\tTeam #{matches[i].teams[t-1].id}\n" + str += "\t\tTeam #{matches[i].teams[t-1].id}\n" end if (t < numTeams) - str += "\t\t VS \n" + str += "\t\t VS \n" end t = t + 1 end -- cgit v1.2.3