The scrollbar is set up before the true monospace is loaded, so reinitialise the window after loading.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user