Skip to content

Conversation

@bemyak
Copy link
Contributor

@bemyak bemyak commented Apr 25, 2025

This PR fixes crash on attempt to DistributeFill a layout with one element:

LinearLayout::horizontal(Chain::new(time))
        .with_spacing(DistributeFill(widget_size.width))
        .arrange();

Now the element is centered as expected.

Copy link
Owner

@bugadani bugadani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@bugadani bugadani merged commit 1f54885 into bugadani:master Apr 25, 2025
6 of 7 checks passed
@bemyak bemyak deleted the fix-fill branch April 27, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants