Add ConfineToChildren to Container, containers will use MinimumRect as a size if a given size is smaller than minimum, update documentation for Container.

This commit is contained in:
2025-06-20 20:08:17 +02:00
parent bc95fff4a3
commit f0c721bb0f
3 changed files with 44 additions and 9 deletions

View File

@@ -127,6 +127,7 @@ public class TestGame : Game
private FlexContainer _container = new(minimumSize: new Rect(64.0f, 64.0f), new())
{
ConfineToContents = false,
Size = new Rect(500, 300),
Direction = FlexDirection.Row,
Justify = JustifyContent.Start,