Fix #11753: Listview with header does not display last item in the list (#11754)

This commit is contained in:
Ted John authored and GitHub committed 2020-05-15 22:05:00 -03:00
1 parent b7b5a26a57
commit da0ef7d3a4
3 files changed
+85 -28

No files matched your search

@@ -581,6 +581,18 @@ namespace OpenRCT2::Ui::Windows
}
InvokeEventHandler(info.Owner, info.Desc.OnUpdate);
}
// Since the plugin may alter widget positions and sizes during an update event,
// we need to force an update for all list view scrollbars
rct_widgetindex widgetIndex = 0;
for (auto widget = w->widgets; widget->type != WWT_EMPTY; widget++)
{
if (widget->type == WWT_SCROLL)
{
widget_scroll_update_thumbs(w, widgetIndex);
}
widgetIndex++;
}
}
static void window_custom_scrollgetsize(rct_window* w, int32_t scrollIndex, int32_t* width, int32_t* height)