Fix scroll to last line problem after main window resize

Fix #9123, close #9265
pull/9276/head
Scott Sumner 4 years ago committed by Don HO
parent 5e0e7a7f73
commit 7aafa2e8fe
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

@ -3347,6 +3347,7 @@ void ScintillaEditView::scrollPosToCenter(size_t pos)
middleLine = lastVisibleDocLine - nbLine/2; middleLine = lastVisibleDocLine - nbLine/2;
int nbLines2scroll = line - middleLine; int nbLines2scroll = line - middleLine;
scroll(0, nbLines2scroll); scroll(0, nbLines2scroll);
execute(SCI_ENSUREVISIBLEENFORCEPOLICY, line);
} }
void ScintillaEditView::hideLines() void ScintillaEditView::hideLines()

Loading…
Cancel
Save