ElyDoc: a page stays centred and zoom stays on the page; only a sheet grows past its size (R2.7)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 02:38:46 -04:00
1 parent 9fe28f072b
commit 1b1148a410
3 files changed
+34 -3

No files matched your search

+2
View File
@@ -359,6 +359,8 @@ fn a_moved_cursor_scrolls_into_view_and_a_still_one_does_not() {
view.scroll_by(0.0, 1_000_000.0, cx);
view.apply_batch(batch(), None, cx);
assert_eq!(view.scroll.1, 0, "a still cursor leaves the scroll alone");
// Only a sheet grows past the kernel's size.
view.sheet = Some(crate::sheet::Geometry::default());
let far = view.doc_size.1 + 20_000;
let cell = crate::Cell {
cursor: Some((1418, far, 1280, 277)),