DVUI

defaults

When break_lines is true, you can't get both a min width and min height, since the width will affect the height. In this case, min width will be as if break_lines was false, and min_height will be the height needed at the current width.

In many cases on our first frame we have a width of zero, which would make min height very large, so instead we assume we will get our min width (or 500 if our min width is zero).

Source

Implementation

#
pub var defaults: Options = .{
    .name = "TextLayout",
    .role = .group,
    .padding = Rect.all(6),
    .background = true,
    .style = .content,
}