Fix scroll to last line problem after main window resize

Fix #9123, close #9265
This commit is contained in:
Scott Sumner 2020-12-14 11:22:03 -05:00 committed by Don HO
parent 5e0e7a7f73
commit 7aafa2e8fe
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

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