1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 10:31:41 +08:00

Add note about ScheduleAfterChildren requirement

This commit is contained in:
Dean Herbert
2020-10-30 12:46:48 +09:00
Unverified
parent 0c1d12460f
commit 46d89d55f4
+2 -1
View File
@@ -172,7 +172,8 @@ namespace osu.Game.Screens.Ranking
expandedTrackingComponent.Margin = new MarginPadding { Horizontal = expanded_panel_spacing };
expandedPanel.State = PanelState.Expanded;
SchedulerAfterChildren.Add(() =>
// requires schedule after children to ensure the flow (and thus ScrollContainer's ScrollableExtent) has been updated.
ScheduleAfterChildren(() =>
{
// Scroll to the new panel. This is done manually since we need:
// 1) To scroll after the scroll container's visible range is updated.