1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

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

This commit is contained in:
Ted John
2020-05-16 02:05:00 +01:00
committed by GitHub
parent b7b5a26a57
commit da0ef7d3a4
3 changed files with 85 additions and 28 deletions

View File

@@ -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)