From f1feaef739722c994d97067758ce942ad64e367d Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 10:39:36 +0700 Subject: [PATCH] 3D panel lighting tests draw the panel as tall as a docked one: Move Light to Back sits below the sphere, past the 300-point room the fixture starts with, where no click reached it --- crates/ui-egui/src/panels/tests_three_d.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/panels/tests_three_d.rs b/crates/ui-egui/src/panels/tests_three_d.rs index 0dfeebfce4..907802042d 100644 --- a/crates/ui-egui/src/panels/tests_three_d.rs +++ b/crates/ui-egui/src/panels/tests_three_d.rs @@ -961,7 +961,10 @@ fn lighting(params: Value) -> (Rc>, Fixture) { let mut app = app(); app.run("effect.apply", json!({"effect": "threeD.extrude", "item": null, "params": params})).unwrap(); app.three_d.page = "lighting".into(); - shown(app) + let (app, mut fixture) = shown(app); + // As tall as a docked panel: the button below the sphere sits past a 300-point room's bottom. + fixture.room(egui::vec2(400.0, crate::tests::panel_harness::ROOM.y)).settle(); + (app, fixture) } /// The lighting widget's part for light `n` (from 1): its screen-reader name and the control to press.