Created
August 4, 2013 22:35
-
-
Save coryschires/6152233 to your computer and use it in GitHub Desktop.
Test gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def height | |
rows_in_legend = (editors.size.to_f / 6.to_f).ceil | |
case rows_in_legend | |
when 1 then 580 | |
when 2 then 722 | |
when 3 then 870 | |
when 4 then 1020 | |
else 1160 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment