diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-10-10 21:16:41 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-10-10 21:16:41 +0200 |
commit | 0cb1be00f695b45453965bf5c3344f788308d850 (patch) | |
tree | b57169cddab58ca49a06af73c937b0a3b73aeef5 /ramaskrik-program.rb | |
parent | d08fa4e375748f0f2232ea75645cb15126155047 (diff) | |
download | ramaskrik-program-0cb1be00f695b45453965bf5c3344f788308d850.tar.gz ramaskrik-program-0cb1be00f695b45453965bf5c3344f788308d850.tar.bz2 ramaskrik-program-0cb1be00f695b45453965bf5c3344f788308d850.zip |
Adjust positioning of event items.
Now aligns at the center of the timestamp instead of at the beginning.
Diffstat (limited to 'ramaskrik-program.rb')
-rwxr-xr-x | ramaskrik-program.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ramaskrik-program.rb b/ramaskrik-program.rb index 87ba2ba..8bda384 100755 --- a/ramaskrik-program.rb +++ b/ramaskrik-program.rb @@ -33,8 +33,8 @@ class EventDecorator < SimpleDelegator attr_reader :height def calc_offsets(time_offset) - @offset = (start_time - time_offset).to_i / 50 - @height = duration / 50; + @offset = 5 + (start_time - time_offset).to_i / 50 + @height = 5 + duration / 50; start_time + duration end end |