From eb7cd77a23bd81b25758370f4f2362db81c2133b Mon Sep 17 00:00:00 2001 From: luk3yx Date: Wed, 5 Jul 2023 14:30:53 +1200 Subject: [PATCH] Fix tabheader positioning when both width and height specified Tabheaders without both a width and height specified still won't work properly. --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index 277b8d7..a0d1997 100644 --- a/init.lua +++ b/init.lua @@ -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