mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-26 03:49:11 +00:00
Merge branch 'regress2/singles' into area/app-1
This commit is contained in:
@@ -389,7 +389,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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user