Fix scroll to last line problem after main window resize
Fix #9123, close #9265
This commit is contained in:
parent
5e0e7a7f73
commit
7aafa2e8fe
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user