Hexworks / zircon

Zircon is an extensible and user-friendly, multiplatform tile engine.
https://hexworks.org/projects/zircon/
Apache License 2.0
755 stars 138 forks source link

Implement component autosizing #391

Closed adam-arold closed 3 years ago

adam-arold commented 3 years ago

With the new option for container builders to add their future children it is now possible to auto-size containers for their children.

lesbiangunshow commented 3 years ago

this also opens the door to autosizing during runtime, right? if we have access to the view hierarchy we could trigger rebuilding when autosized components' children's sizes change, or children are added or removed to ensure constraints continue to be matched. For example, it would be trivial to have a box wrap some row elements, and have it change size to match the amount of elements within.