From 014496a7af30ae4c4dfdac2df2ad9e69be8142e1 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Fri, 24 Nov 2023 11:39:01 +0100 Subject: [PATCH] slight adjustment to size --- haxe/ui/containers/Frame.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/haxe/ui/containers/Frame.hx b/haxe/ui/containers/Frame.hx index ff62da721..75e0c52cf 100644 --- a/haxe/ui/containers/Frame.hx +++ b/haxe/ui/containers/Frame.hx @@ -222,12 +222,13 @@ private class Layout extends DefaultLayout { } var labelOffsetLeft:Float = 0; + var headerWidth = label.width; var frameHeader = findComponent("frame-header", Header, false); if (frameHeader != null) { - labelOffsetLeft += frameHeader.width - horizontalSpacing; + //labelOffsetLeft += -horizontalSpacing; + headerWidth += frameHeader.width; } - var headerWidth = label.width; if (icon != null) { labelOffsetLeft += horizontalSpacing; headerWidth += labelOffsetLeft + icon.width + horizontalSpacing;