Changeset - r28671:0fb12922facc
[Not reviewed]
master
0 1 0
Peter Nelson - 3 months ago 2024-02-04 10:15:20
peter1138@openttd.org
Fix #11966: Scrollbar may be incorrect on first opening of text file window. (#11981)

The scrollbar is set up before the true monospace is loaded, so reinitialise the window after loading.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/textfile_gui.cpp
Show inline comments
 
@@ -850,6 +850,9 @@ void TextfileWindow::LoadText(std::strin
 
	this->AfterLoadText();
 

	
 
	CheckForMissingGlyphs(true, this);
 

	
 
	/* The font may have changed when searching for glyphs, so ensure widget sizes are updated just in case. */
 
	this->ReInit();
 
}
 

	
 
/**
0 comments (0 inline, 0 general)