layers: the host-drop trial gives its two panels their own documents, so their row lists get their own ids

This commit is contained in:
bflatastic
2026-11-22 08:15:17 +07:00
parent 294e44299c
commit 241e37e03c
+2 -1
View File
@@ -150,12 +150,13 @@ fn a_host_payload_dropped_onto_and_between_rows_reports_its_place() {
let origin = ui.max_rect().min;
in_region(ui, Rect::from_min_size(origin, PANEL), |ui| {
let out = LayersPanel::new(&target)
.document(1)
.takes_drop(|_: &ListDrag<LayerRowKey<u32>>, layer: &u32, position| position != LayerPosition::Into || *layer == GROUP)
.show(ui);
sink.borrow_mut().extend(out.events);
});
in_region(ui, Rect::from_min_size(origin + Vec2::new(PANEL.x, 0.0), PANEL), |ui| {
let _ = LayersPanel::new(&source).show(ui);
let _ = LayersPanel::new(&source).document(2).show(ui);
});
});
fixture.room(Vec2::new(PANEL.x * 2.0, PANEL.y));