mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-20 21:28:03 +00:00
fixed a bug where layout was order dependent
This commit is contained in:
parent
a11a6ee5a2
commit
bb6ec1b0b7
1
clay.h
1
clay.h
@ -2110,6 +2110,7 @@ void Clay__CompressChildrenAlongAxis(bool xAxis, float totalSizeToDistribute, Cl
|
||||
if (childSize == largestSize) {
|
||||
Clay__int32_tArray_Add(&largestContainers, Clay__int32_tArray_Get(&resizableContainerBuffer, i));
|
||||
} else if (childSize > largestSize) {
|
||||
targetSize = largestSize;
|
||||
largestSize = childSize;
|
||||
largestContainers.length = 0;
|
||||
Clay__int32_tArray_Add(&largestContainers, Clay__int32_tArray_Get(&resizableContainerBuffer, i));
|
||||
|
Loading…
Reference in New Issue
Block a user