You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #334 (comment) I
said I wanted to see a scrolling list for the productivity tech levels,
but I didn't realize that scroll views and tab controls didn't get
along. They get along now, and the preferences screen won't get too tall
with extra prod researches.
The first commit has a fix that should maybe have been its own PR?
Trying to change the level of the scrap mining productivity research
would toggle dark mode instead. (If you had a lot of milestones, it was
steel smelting productivity instead.)
// When rendering the scrollable content, render 'blocks' of 4 rows at a time. (As far as I can tell, any positive value works. Shadow picked 4, so I kept that.)
277
-
privatereadonlyintbufferRows=4;
292
+
privateconstintBufferRows=4;
278
293
// The first block of bufferRows that was rendered last time BuildContents was called. If it changes while scrolling, we need to re-render the scrollable content.
thrownewInvalidOperationException($"{nameof(GetRemainingContentHeight)} must only be called from a {nameof(GuiBuilder)} that is currently building a {nameof(TabPage)}.");
0 commit comments