1
0
Fork 0

Fix #11966: Scrollbar may be incorrect on first opening of text file window.

The scrollbar is set up before the true monospace is loaded, so reinitialise the window after loading.
pull/11981/head
Peter Nelson 2024-02-04 09:39:57 +00:00
parent 0937158499
commit ef1881cc7d
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 3 additions and 0 deletions

View File

@ -850,6 +850,9 @@ void TextfileWindow::LoadText(std::string_view buf)
this->AfterLoadText(); this->AfterLoadText();
CheckForMissingGlyphs(true, this); CheckForMissingGlyphs(true, this);
/* The font may have changed when searching for glyphs, so ensure widget sizes are updated just in case. */
this->ReInit();
} }
/** /**