forked from rosebudai/OpenRCT2-Web
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user