mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 01:37:31 +08:00
Add note about ScheduleAfterChildren requirement
This commit is contained in:
parent
0c1d12460f
commit
46d89d55f4
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user