From 2308d84961f39729cde1b7c0cc58748ea87436e7 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 21 Nov 2026 19:26:05 -0500 Subject: [PATCH 1/2] Give bookmark destination test room to scroll --- crates/ui-egui/tests/it/view.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ui-egui/tests/it/view.rs b/crates/ui-egui/tests/it/view.rs index e2c39d00ac..0c03daf7bf 100644 --- a/crates/ui-egui/tests/it/view.rs +++ b/crates/ui-egui/tests/it/view.rs @@ -1024,6 +1024,9 @@ fn bookmark_destinations_scroll_to_their_position() { use egui_kittest::kittest::Queryable; use pdfcraft_ui_egui::canvas::Fit; let mut h = dests_harness(); + // Leave enough room to scroll the destination to the start edge at 300%. + h.set_size(egui::vec2(1300.0, 900.0)); + h.run_steps(6); // Fit width: the pages are taller than the window, so any point of them can reach its top. h.get_by_label("Section 1.1 Shapes").click(); h.run_steps(6); From dbe2e3300c257917dc8994e1e27c095258da0657 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 21 Nov 2026 19:32:21 -0500 Subject: [PATCH 2/2] Keep form editor focus distinct across fields --- crates/ui-egui/src/tools/forms_ui/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/tools/forms_ui/editor.rs b/crates/ui-egui/src/tools/forms_ui/editor.rs index f8ec9df065..f3ecba18e2 100644 --- a/crates/ui-egui/src/tools/forms_ui/editor.rs +++ b/crates/ui-egui/src/tools/forms_ui/editor.rs @@ -388,7 +388,7 @@ pub(crate) fn show( .mode(if multiline { EditorMode::FieldLines } else { EditorMode::FieldLine }) .esc_commits(false); let editor = if f.has(field_flags::PASSWORD) { editor.masked() } else { editor }; - let out = editor.show_at(ui, rect); + let out = ui.push_id((&f.name, f.obj, widget), |ui| editor.show_at(ui, rect)).inner; ended = out.ended; shown = Some(out.response.id); }