Skip to main content
Question

Slot children should optionally behave like top‑level items in “Fill container” layouts

  • March 21, 2026
  • 0 replies
  • 5 views

Ram Paladugu

In slots 

Problem

When using Auto Layout with Fill container, a slot is treated as a single layout item, even if it contains multiple children.
As a result, only the slot itself participates in space distribution, while its children can only divide the slot’s assigned space.

In an Auto Layout container, when multiple items have width = Fill container, space is distributed evenly across those items.

Example:

  • Container width: 150px
  • Items: 1 (Column header), 2 (Column header), 3 (Slot)
    → Each item gets 50px

Now, if I place multiple column headers inside the slot:

  • 3 (Slot → A, B, C)

The space is currently distributed like this:

  • Column 1 → 50px
  • Column 2 → 50px
  • Slot → 50px, which is then split internally
    • A → 16.6px
    • B → 16.6px
    • C → 16.6px

Expected behavior

Slot children should optionally behave as independent layout participants, so the layout becomes:

  • Column 1 → 25px
  • Column 2 → 25px
  • A → 25px
  • B → 25px
  • C → 25px

In other words, items inside a slot should be able to participate directly in the parent Auto Layout instead of inheriting a single shared width from the slot.

Suggested solution

The slot could expose a setting such as:

  • Slot behavior
    • Treat children as nested items (current behavior)
    • Treat children as main layout items

This would be especially useful for tables, dynamic column headers, and composable layouts, where slots are used for extensibility but shouldn’t affect layout space distribution.