mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 12:36:17 +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 a new issue