A host that shows the stroke editor inside its own FieldGroup, next to
rows of its own, got two label columns. The editor put its Alignment,
Caps, Corners, Miter limit and Opacity rows in a FieldGroup of its own,
and the Dash offset row in another, so their controls started at the
editor's widest label instead of the host group's.
StrokeEditor::host_labels(true) shows those rows in a stack that fills
the width, which passes the host group's label column through. The
controls of the editor's rows, the app's choice rows and the Align
dashes row then start where the controls of the host's rows start. The
default is unchanged: without the option each group keeps its own label
column.
Test: host_labels_start_the_editor_rows_at_the_host_groups_control_edge
in crates/draw/tests/it/stroke_editor.rs.
egui drops a child viewport that a pass of its parent leaves out and
counts the passes of the viewport it opens again under the same id from
zero, while the window stays open and the runtime keeps its records. A
record stamped with a pass number from before could then match a later
pass of the new count and keep that pass's state. In debug builds a tab
tooltip shown in a popup window from a native palette's flyout tripped
"an id is the base of two open stages in one pass" after the pointer
moved from one tab to the next, because the tooltip window closed and
opened again under the same id.
The begin hook now records each viewport's latest pass number. When a
pass begins with a number no higher than it, the viewport's pass-stamped
records are dropped before the pass runs.
The size guard marks a leaf with a zero side as inert, and place_root
placed every inert component at a zero size. egui still added the item
spacing for that allocation, so a content-sized Row counted the gap
before an 8 x 0 leaf but not its width, and a popup sized from the
measuring run cut the leaf off at its edge.
place_root now places an inert component at its measured size when the
size is finite and in range. A size the guard rejects for every shape
still takes no room, and the leaf stays inert.
A bar made with `Bar::wrap` sent a member to a new line as soon as the
members' natural widths passed the bar, without first narrowing its
selects the way a bar that does not wrap does. A canvas task bar with
type selected (three buttons, the font family, style and size selects,
the paint chips and the More button) was a little wider than the canvas,
so the More button went alone onto a second line and the bar spread to
the full width of the canvas.
A wrapping row in a bar now runs a counting sweep in its measuring run.
When its members are too wide for one line at their natural widths but
fit it at their least, the row narrows them by the same shrink step as a
bar row that does not wrap, from the end, and keeps them on one line.
Members leave by rank only in rows that do not wrap. When even their
least does not fit, the row wraps as before. Wrapping rows outside a
bar are unchanged.
The shrink step's settle closure in `run_shrinking` moves into
`settle_shrink` so both rows use it.
A regular tool rail stood its buttons 32 pt apart in the compact sizes:
each button was `size.rail.button` (30 pt) square and the tight gap
(2 pt) came on top. `RailDensity::Regular` buttons are now
`size.rail.button` less `space.gap.tight` square, so a button and the
gap after it take `size.rail.button`. The dock grid's rail columns
follow the same width.
`ToolRail::footer_scrolls` puts the host's footer under the slots inside
the scroll region, after the same divider rule and gap, so in a rail too
short for its rows and footer the footer scrolls with the tools. Without
it the footer stays pinned as before.
With a repeated move no longer stirring the pass, drag_moves returned before every_move, so a tool that takes every move lost the drag call for a move to the position of the last move during a drag. drag_moves now hands the pass's moves to such a tool first, and gives any other tool its single drag only when the pass is stirred or the pointer is in the edge band.
While a measuring run lays out a field group, a row only sees the label
column that the rows before it reported. A check box row with its label
after it, above the first row with a side label, saw no column. A row
beside a label narrower than the widest saw a narrower column. Both
measured their help line wider than the control column of the real run,
so the footer was sized for fewer lines and the last line was cut off.
The label step now notes the column such a row read when the row has a
help line, so the group runs its rows again at the final widths. This
covers a label after the control, a label beside it and a hidden side
label.
The fixture's shown rect grows with whatever the row allocates, so a
button that overflowed the column also widened it and the check passed.
The room starts at x = 0, so the test now compares the button's right
edge with the requested width.
The begin hook marked a pass as stirred for every PointerMoved event, so a canvas tool host re-hovered a still pointer, with a full hit test, on every pass that repeated the pointer's position. A move now stirs the pass only when it goes to a new position or carries a pen or touch reading. The last move's position is kept per viewport and cleared when the pointer leaves the window.
The test compared only the first cell with the Zoom footer, so a grid that ran over the footer in a lower row still passed. It now also checks that the bottom of the glyph grid is at or above the footer's top.
ui.dialog.confirm confirms the first open dialog with the named ID, but
its held reply recorded the newest opening of that ID. When a dialog of
another type opened under the same ID after the confirm, the next
poll_held answered "the dialog closed while its OK waited for the app's
answer" while the confirmed dialog was still open and waiting.
DialogHost::held_state_with_open_serial returns the opening serial and
held state of the dialog confirm_by_id addresses. dialog_reply records
that serial, and poll_held reads the state of that same opening.
The tear-off bar took its height from the menu rows' rect. In the popup's
measuring run the rows have no rect yet, so the bar measured zero tall and
its width was left out of the flyout's size. The flyout came out one bar
narrower than its content, and its edge clipped the bar and the three grip
lines.
The bar now measures at least as tall as its grip, so the measuring run
counts its width. The new test opens a flyout with the tear-off bar and
checks that the grip lines paint whole inside a clip as wide as the bar.
PathRow showed its FillWidth text field in a content-sized Row, where a
filling leaf keeps its measured width. The field stayed at its full field
length and the row narrowed the Browse button instead, so in a column
narrower than about 280 pt the label was cut to "Brows...". The row now
fills its width: the field takes the room the button leaves.
The lock file's length repeats every 64 holds, so a waiter that missed a whole cycle between two polls saw the same mark and could time out behind holds that each lasted far less than the timeout. The mark now also carries the lock file's modification time, which each hold moves when it sets the new length.
Under GroupHeads::Rule a divider between groups was drawn on the top
edge of its row, so it sat one gap under the tiles above it and a full
row height over the tiles below it. The divider is now drawn through
the middle of its row, as a list's rule head draws it, and the row has
the gap below it as well as above it.
A menu opened in a bottom slot stayed above every bottom slot, so a
status bar menu opened about 24 pt above its control when a help bar
sat between the status bar and the canvas. Popups opened in a bottom
slot now stay above only the bottom slots outside it; popups the body
opens still end above every bottom slot.
The glyph grid took all the height left in the panel body and the footer row (the count, the zoom slider and the note shown when no text is being edited) was laid out after it, below the panel's bottom edge, which also cut off the grid's last row. The footer now goes in the stack's footer region, which keeps its room under the grid, and writes the panel settings once after the zoom slider runs.
A wrapping SpaceBetween row spread its children over its room whenever they
fit one line, even when that line also held a direct egui allocation. The
spread started at the row's start edge, so a child covered the allocation.
The row now spreads only when its content is no wider than its children with
the gap between them; otherwise it keeps the wrapping placement.
* sensing: an owner's parts read their press without a search of its last-pass parts for each one
part_press_in searched the owner's parts of the last pass for every part it
read, so an owner with n parts did n searches of n entries in each pass. It
now searches only for a part that a hit of the pass names: the press target,
a hovered shape or the aside press.
The new trial counts the searches over 3 idle frames of a 400-part root: 1200
before, at most 9 after, and the hovered part still reads hover.
* sensing: count part lookups per viewport instead of in a thread_local
The lookup counter for the many-parts test now lives in the viewport's
arenas behind the testing feature, and known_part_lookups takes the
context, so contract/no-global-state has no thread_local in sensing.rs.
`with_lock` gave up after waiting 5 s in total, however many times the
lock changed hands meanwhile. A process signing in many accounts takes
the lock in a quick run of short holds, and a waiter polling every
20 ms can miss every gap. Under load,
`concurrent_sign_ins_from_two_processes_lose_no_rows` failed with
"timed out waiting for the accounts lock".
Each hold now sets the lock file's length to the next value in 1 to
64. A waiter that sees the length change starts its 5 s over, so it
still gives up on one hold that lasts past 5 s. Unit tests drive the
wait with their own times instead of sleeping.
`zeroed` and `refill_zeroed` filled each image buffer with
`par_extend(repeat_n(0u8, len))`, which has no minimum piece length.
When workers stole from each other, rayon kept splitting the buffer,
and on a pool with 128 or more workers the nested splits overflowed a
worker's 2 MiB stack. The fax page test
`a_blank_fax_page_wider_than_4096_px_passes_the_bomb_guard` aborted
this way on a 192-core host.
Both functions now call `extend_zeros`, which sets `with_min_len` to
1 MiB. A unit test zeroes 64 MiB on a pool of 256 workers with 256 KiB
stacks; without the change it aborts with a stack overflow.
Lands #3916 onto main after #3909 and #3914. The only change from the
approved head is the merge resolution in tests/it/find_dialog.rs: all
three PRs appended a test at the end of the file, and all are kept.
Co-Authored-By: batistalucasv <175663788+batistalucasv@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The resting veil of a CardText::PageTile card fades the scrim by
Opacity::TINT (0.18) instead of a local 0.2, so it follows the theme's
opacity scale like the other tints. The test checks the veil's alpha
against Opacity::TINT.