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

This commit is contained in:
bflatastic
2026-11-23 10:39:36 +07:00
parent 1f5c94f59c
commit f1feaef739
+4 -1
View File
@@ -961,7 +961,10 @@ fn lighting(params: Value) -> (Rc<RefCell<VectorcraftApp>>, 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.