Commit Graph
9 Commits
Author SHA1 Message Date
dotCooCoo cc3172c606 ui: a wrapping spread row on one line sets its children on an unwrapped row's line
A wrapping SpaceBetween row whose children fit one line recorded its line at
the middle of its tallest child. When the real run spread the children, a
child whose line lies above its middle (a nested row whose line is its first
button's, beside a column of two buttons) sat its line on that middle and
reached below the row's measured height, over the next sibling.

The measuring run now records what each child takes about a line, as an
unwrapped row's children do, and the row records that line and its height.
The measuring block takes that height when the real run may spread the
children, so the container measures the row as tall as it shows.
2026-11-28 13:22:26 -08:00
dotCooCoo 063b7295e5 ui: a wrapping spread row on one line keeps to its container's wrap width
A wrapping SpaceBetween row whose children fit one line was spread over the
whole room its container offered, while the same row wraps its lines at the
container's paragraph line length (a wrap width set on a content-sized
container). A row that fills a stack whose least width is wider than its wrap
width put its last child at the stack's end instead of at the wrap width.

The rect the row wraps in is now one helper, wrap_rect. The one-line check
compares the children with that rect's width, and the spread row places them
in that rect. A row with no narrower wrap width still spreads over its room.
2026-11-28 13:04:58 -08:00
Martin BallandClaude Opus 5.5 9e1c5f75e4 #7171: scroll bodies offer fill-width children the view, not the bar lane
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 12:20:36 +00:00
Martin Ball f77301a76d Merge follow-up: resolve_in takes Reads; the host-key trial gives states through CommandStates; cargo fmt 2026-11-20 00:40:05 +00:00
Martin BallandClaude Opus 5.5 e368403605 fwstub-1: a labelled leaf in a wrapping row starts a new line when it would not fit the rest of the line (it is placed before egui allocates it, so the row never wrapped a radio and squeezed the last label); Page Setup's Text snaps to characters takes its second line again; trial
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:25:32 +00:00
Martin Ball 99c2bdf38b look-7a: Pad::Page, a full-window page's margin (two and a half roomy pads, 40 pt compact), as WordCraft's File pages stand off the window; trial and the Stack story's pad choice 2026-11-19 19:54:29 +00:00
Martin Ball d928a407cf look-7a: a container's least width holds in the measure its parent places it by, as in its own extent; a row gave a File page's side menu only its widest name (about 123 pt for 200); trial 2026-11-19 19:50:43 +00:00
Martin Ball cc0293e33b look-rest-3: a wrapping row wraps at its container's paragraph line length (a dialog's wrap width) instead of widening a content-sized dialog; Page Setup's grid kinds take two lines as WordCraft's; trial 2026-11-19 14:16:43 +00:00
Martin Ball 9e3d7bbc1f look-rest-2: WrapWidth::Column (size.dock.column) and Stack::wrap_width, a settings column beside a preview breaks its paragraphs instead of widening; trial and story 2026-11-19 13:55:17 +00:00