Skip to content
Snippets Groups Projects
Commit 460ab083 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Fixed textzones being too spacious/cut off sometimes as a consequence (when...

Fixed textzones being too spacious/cut off sometimes as a consequence (when they have many tall letters).
parent 7323ed57
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ function _M:display(x, y, nb_keyframes, screen_x, screen_y, offset_x, offset_y,
current_y = current_y + item.h - clip_y_start
end
-- add full size of item
total_h = total_h + item.h
total_h = total_h + self.font_h
-- if we are too deep then end this
if total_h > loffset_y + self.dest_area.h then break end
end
......
......@@ -227,6 +227,7 @@ function _M:display(x, y, nb_keyframes, ox, oy, offset_x, offset_y, local_x, loc
clip_y_end = 0
local item_h = item.is_separator and (self.fh - self.sep.h) or item.h
local item_skip = item.is_separator and (self.fh - self.sep.h) or self.font_h
-- if item is within visible area bounds
if total_h + item_h > loffset_y and total_h < loffset_y + self.dest_area.h then
-- if it started before visible area then compute its top clip
......@@ -250,8 +251,8 @@ function _M:display(x, y, nb_keyframes, ox, oy, offset_x, offset_y, local_x, loc
-- add only visible part of item
current_y = current_y + item_h - clip_y_start
end
-- add full size of item
total_h = total_h + item_h
-- add line skip of item
total_h = total_h + item_skip
-- if we are too deep then end this
if total_h > loffset_y + self.dest_area.h then break end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment