8.4 name the node to resize when a fill is refused #38

Closed
opened 2026-08-18 17:25:15 +01:00 by Bolt · 0 comments
Collaborator

Found composing the real daily page (#24).

Creating a stack inside a row and inserting Todo list into it is refused
with "a repeat of fill needs a parent whose width is fixed or grow, not auto",
flagged against the widget. The node that has to change is the ancestor column,
which the message never names.

useEditor's insert retry only tries height: grow on the arriving node, and
no width retry could help: grow inherits its definiteness from an auto parent.

Composing the daily page stopped dead here until the rule was read out of
src/spec/fill.ts.

Fix: the fill check blames the outermost ancestor that is auto on the failing
axis and names it in the message. Decision 21 still applies, so a blame inside
a widget's own spec answers to the widget node.

Found composing the real daily page (#24). Creating a `stack` inside a `row` and inserting Todo list into it is refused with "a repeat of fill needs a parent whose width is fixed or grow, not auto", flagged against the widget. The node that has to change is the ancestor column, which the message never names. `useEditor`'s insert retry only tries `height: grow` on the arriving node, and no width retry could help: grow inherits its definiteness from an auto parent. Composing the daily page stopped dead here until the rule was read out of src/spec/fill.ts. Fix: the fill check blames the outermost ancestor that is auto on the failing axis and names it in the message. Decision 21 still applies, so a blame inside a widget's own spec answers to the widget node.
TJC closed this issue 2026-08-18 19:56:29 +01:00
Sign in to join this conversation.
No labels
chore
core
render
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
TJC/daily-planner-template#38
No description provided.