Fix tabheader positioning when both width and height specified

Tabheaders without both a width and height specified still won't work properly.
This commit is contained in:
luk3yx 2023-07-05 14:30:53 +12:00
parent 18538ffd46
commit eb7cd77a23

View File

@ -203,6 +203,11 @@ local function apply_padding(node, x, y)
-- Add _padding_top to fields with labels that have a fixed size set
local _, label_h = get_label_size(node.label)
node._padding_top = label_h
elseif node.type == "tabheader" and w > 0 and h > 0 then
-- Handle tabheader if the width and height are set
-- I'm not sure what to do with tabheaders that don't have a width or
-- height set.
y = y + h
end
if node._padding_top then