]> git.lyx.org Git - features.git/commit
Honor scroll_below_document when jumping to end of document
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 11 Jul 2023 20:26:00 +0000 (22:26 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 18 Jul 2023 19:03:00 +0000 (21:03 +0200)
commit008cec3eec348b43c106f939c6c60e325c4b5e78
tree93b7f2b1fc9fb87a34fe2ec130f2217afb46b56d
parent649cb309638734db324be8d2fa8fb06073ddd136
Honor scroll_below_document when jumping to end of document

While fixing #12491 at 0fed10e4, some band-aids were removed at the
end of `BufferView::scrollToBuffer`. One of them ensured that
scrolling to last paragraph would not leave the last row alone on
screen.

This behavior is actually correct when the scroll_below_document pref is true.

This commit restores the test that avoids the issue.

Of course, this does not fix the real issue, since for example opening
Tutorial.lyx and jumping to "5.3 Errors!" produces the same unwanted
effect.
src/BufferView.cpp