mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 04:26:18 +00:00
parent
723f59dffd
commit
6cb9c7c483
1
clay.h
1
clay.h
|
@ -2392,6 +2392,7 @@ void Clay__CalculateFinalLayout(void) {
|
|||
Clay__WrappedTextLineArray_Add(&Clay__wrappedTextLines, CLAY__INIT(Clay__WrappedTextLine) { { measuredWord->width, lineHeight }, { .length = measuredWord->length, .chars = &textElementData->text.chars[measuredWord->startOffset] } });
|
||||
textElementData->wrappedLines.length++;
|
||||
wordIndex = measuredWord->next;
|
||||
lineStartOffset = measuredWord->startOffset + measuredWord->length;
|
||||
}
|
||||
// measuredWord->length == 0 means a newline character
|
||||
else if (measuredWord->length == 0 || lineWidth + measuredWord->width > containerElement->dimensions.width) {
|
||||
|
|
Loading…
Reference in a new issue