Skip to content

Commit

Permalink
slight adjustment to size
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Nov 24, 2023
1 parent 3dc9cd3 commit 014496a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions haxe/ui/containers/Frame.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 014496a

Please sign in to comment.