From 338852b3cee2c96f3643aedf9d0827c114475000 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Tue, 14 Jan 2025 14:26:30 +1300 Subject: [PATCH] Fix a bug with the new padding --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index 4016ad3..0014c45 100644 --- a/clay.h +++ b/clay.h @@ -2589,7 +2589,7 @@ void Clay__CalculateFinalLayout() { }); } } - Clay__LayoutElementTreeNodeArray_Add(&dfsBuffer, CLAY__INIT(Clay__LayoutElementTreeNode) { .layoutElement = rootElement, .position = rootPosition, .nextChildOffset = { .x = (float)(rootElement->layoutConfig->padding.left + rootElement->layoutConfig->padding.right), .y = (float)(rootElement->layoutConfig->padding.top + rootElement->layoutConfig->padding.bottom) } }); + Clay__LayoutElementTreeNodeArray_Add(&dfsBuffer, CLAY__INIT(Clay__LayoutElementTreeNode) { .layoutElement = rootElement, .position = rootPosition, .nextChildOffset = { .x = (float)rootElement->layoutConfig->padding.left, .y = (float)rootElement->layoutConfig->padding.top } }); context->treeNodeVisited.internalArray[0] = false; while (dfsBuffer.length > 0) {