aboutsummaryrefslogtreecommitdiffstats
path: root/ramaskrik-program.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-10-10 21:16:41 +0200
committerHarald Eilertsen <haraldei@anduin.net>2024-10-10 21:16:41 +0200
commit0cb1be00f695b45453965bf5c3344f788308d850 (patch)
treeb57169cddab58ca49a06af73c937b0a3b73aeef5 /ramaskrik-program.rb
parentd08fa4e375748f0f2232ea75645cb15126155047 (diff)
downloadramaskrik-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-xramaskrik-program.rb4
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