mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-11-21 17:41:06 +00:00
standalone view: more padding
This commit is contained in:
parent
c4b55db10d
commit
484d1ea65e
1 changed files with 2 additions and 2 deletions
4
node.lua
4
node.lua
|
@ -132,7 +132,7 @@ function node.render()
|
|||
local col2 = PADDING*2 + 15 + font_text:width("XXX min ago", time_size)
|
||||
|
||||
local track_x = 0
|
||||
local track_y = NATIVE_HEIGHT
|
||||
local track_y = NATIVE_HEIGHT - PADDING
|
||||
local space_used_for_tracks = 0
|
||||
for idx = 1, #tracks do
|
||||
track = tracks[idx]
|
||||
|
@ -182,7 +182,7 @@ function node.render()
|
|||
font_text, info_size, NATIVE_WIDTH - col2 - PADDING
|
||||
)
|
||||
|
||||
if y + #title_lines * TALK_FONT_SIZE + 3 + #info_lines * info_size > NATIVE_HEIGHT - space_used_for_tracks*info_size then
|
||||
if y + #title_lines * TALK_FONT_SIZE + 3 + #info_lines * info_size > NATIVE_HEIGHT - space_used_for_tracks*info_size - PADDING*2 then
|
||||
break
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue