mirror of https://github.com/ppy/osu
Remove now unnecessary `ScheduleAfterChildren`
This commit is contained in:
parent
e06ece7531
commit
276021dd85
|
@ -335,8 +335,7 @@ private void changeExpandedState(ValueChangedEvent<bool> expanded)
|
||||||
|
|
||||||
private float? scoreComponentsTargetWidth;
|
private float? scoreComponentsTargetWidth;
|
||||||
|
|
||||||
// Schedule required to get correct DrawWidth from text after updates.
|
private void updateDetailsWidth()
|
||||||
private void updateDetailsWidth() => SchedulerAfterChildren.AddOnce(() =>
|
|
||||||
{
|
{
|
||||||
const float score_components_min_width = 88f;
|
const float score_components_min_width = 88f;
|
||||||
|
|
||||||
|
@ -349,7 +348,7 @@ private void updateDetailsWidth() => SchedulerAfterChildren.AddOnce(() =>
|
||||||
|
|
||||||
scoreComponentsTargetWidth = newWidth;
|
scoreComponentsTargetWidth = newWidth;
|
||||||
scoreComponents.ResizeWidthTo(newWidth, panel_transition_duration, Easing.OutQuint);
|
scoreComponents.ResizeWidthTo(newWidth, panel_transition_duration, Easing.OutQuint);
|
||||||
});
|
}
|
||||||
|
|
||||||
private void updateState()
|
private void updateState()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue