Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak time range column height to address iOS layout issues.

  • Loading branch information...
commit 4cc2e784f53656e13c0897b567542003937047fc 1 parent 5e68c11
@marioaquino marioaquino authored
View
8 app/helpers/application_helper.rb
@@ -64,13 +64,13 @@ def time_column_height(session_count)
when 1
250
when 2
- 265
+ 280
when 3
- 290
- when 4..5
310
+ when 4..5
+ 325
else
- 320
+ 345
end)
end
View
14 spec/helpers/application_helper_spec.rb
@@ -168,13 +168,13 @@ def make_parent(parent, *children)
it "#time_column_height calculates for various session sizes" do
helper.time_column_height(1).should == 250
- helper.time_column_height(2).should == 530
- helper.time_column_height(3).should == 870
- helper.time_column_height(4).should == 1240
- helper.time_column_height(5).should == 1550
- helper.time_column_height(6).should == 1920
- helper.time_column_height(7).should == 2240
- helper.time_column_height(8).should == 2560
+ helper.time_column_height(2).should == 560
+ helper.time_column_height(3).should == 930
+ helper.time_column_height(4).should == 1300
+ helper.time_column_height(5).should == 1625
+ helper.time_column_height(6).should == 2070
+ helper.time_column_height(7).should == 2415
+ helper.time_column_height(8).should == 2760
end
it "exposes a key for authenticated attendee sessions" do
Please sign in to comment.
Something went wrong with that request. Please try again.