mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-11-22 01:51:03 +00:00
fix calculation error when showing abstract
This commit is contained in:
parent
17aef9463a
commit
b3dab53d13
1 changed files with 1 additions and 1 deletions
2
tile.lua
2
tile.lua
|
@ -192,8 +192,8 @@ local function view_next_talk(starts, ends, config, x1, y1, x2, y2)
|
||||||
y = y + 20
|
y = y + 20
|
||||||
|
|
||||||
-- Show abstract only if it fits into the drawing area completely
|
-- Show abstract only if it fits into the drawing area completely
|
||||||
|
local lines = wrap(current_talk.abstract, font, abstract_size, a.width - col2)
|
||||||
if show_abstract and a.height > (y + #lines*abstract_size + 20) then
|
if show_abstract and a.height > (y + #lines*abstract_size + 20) then
|
||||||
local lines = wrap(current_talk.abstract, font, abstract_size, a.width - col2)
|
|
||||||
for idx = 1, #lines do
|
for idx = 1, #lines do
|
||||||
text(col2, y, lines[idx], abstract_size, rgba(default_color,1))
|
text(col2, y, lines[idx], abstract_size, rgba(default_color,1))
|
||||||
y = y + abstract_size
|
y = y + abstract_size
|
||||||
|
|
Loading…
Reference in a new issue