fix(engine): resize pile-marker outline and watermark children on relayout #131
Reference in New Issue
Block a user
Delete Branch "fix/pile-marker-child-resize"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during Fold 7 on-device verification of v0.41.0 (photo evidence): after a fold/unfold, the empty foundation slots rendered as oversized grey slabs.
Root cause:
on_window_resizedresized the pile-marker fill sprite but never its two children — the outline frame and the "A"/"K" watermark — which are sized once at spawn. Any resize left them at spawn-time size.Fix: the resize handler re-derives both children from the new layout using the same formulas as spawn (outline = card_size + 2×
PILE_MARKER_OUTLINE_WIDTH, watermark font = card_size.x × 0.28).Also adds:
resize_updates_marker_outline_and_watermark_childrenGates: desktop clippy
--all-targets -D warningsclean,cargo ndkclippy for aarch64 clean, workspace tests green.Refs #130
🤖 Generated with Claude Code