From 944fe8616cdd7c79f99e014d1bbaaac58869941d Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Sun, 15 Nov 2026 00:35:17 -0500 Subject: [PATCH] M5: the frame_with_child doc comment gives the layers' real positions (#2377 review) The nested frame is 100 x 100 at (180, 180) and its rectangle is 40 x 40 at (200, 200), as the code creates them. Co-Authored-By: Claude Opus 5.5 Model-Effort: Opus 5.5 driver, no subagent --- crates/engine/src/selection_behaviour_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/selection_behaviour_tests.rs b/crates/engine/src/selection_behaviour_tests.rs index b2aed52cf..62583e695 100644 --- a/crates/engine/src/selection_behaviour_tests.rs +++ b/crates/engine/src/selection_behaviour_tests.rs @@ -563,8 +563,8 @@ fn shift_click_takes_a_layer_out_where_nothing_can_move() { assert_eq!(s.selection(), vec![k.empty], "Shift-click still takes the layer out"); } -/// A top-level 300 x 300 frame with a filled 100 x 100 rectangle at (50, 50) and a nested frame -/// at (200, 200 80x80) holding a rectangle at (210, 210 40x40). +/// A top-level 300 x 300 frame with a filled 100 x 100 rectangle at (50, 50) and a nested 100 x 100 +/// frame at (180, 180) holding a 40 x 40 rectangle at (200, 200). fn frame_with_child(s: &mut Session) -> (NodeId, NodeId, NodeId, NodeId) { let f = id(&ex(s, "frame.create", json!({"x": 0, "y": 0, "width": 300, "height": 300}))); let c = id(&ex(s, "shape.rectangle", json!({"x": 50, "y": 50, "width": 100, "height": 100, "parent": f})));