mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Fix PageDown/Up scrolling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22212 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
65dc5e8337
commit
a84b8ca6be
@ -450,12 +450,6 @@ void BufferView::updateScrollbar()
|
|||||||
|
|
||||||
int h = tm.parMetrics(d->anchor_ref_).height();
|
int h = tm.parMetrics(d->anchor_ref_).height();
|
||||||
|
|
||||||
// Normalize anchor/offset (MV):
|
|
||||||
while (d->offset_ref_ > h && d->anchor_ref_ < parsize) {
|
|
||||||
d->anchor_ref_++;
|
|
||||||
d->offset_ref_ -= h;
|
|
||||||
h = tm.parMetrics(d->anchor_ref_).height();
|
|
||||||
}
|
|
||||||
// Look at paragraph heights on-screen
|
// Look at paragraph heights on-screen
|
||||||
int sumh = 0;
|
int sumh = 0;
|
||||||
int nh = 0;
|
int nh = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user