1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-03 13:44:34 +08:00

Fix revert button not always matching control's size

This commit is contained in:
Dean Herbert
2026-01-27 18:36:49 +09:00
Unverified
parent d6bf4fd90d
commit 786ea35274
@@ -86,6 +86,12 @@ namespace osu.Game.Overlays.Settings
controlDefault.BindValueChanged(_ => updateDefaultState());
controlEnabled.BindValueChanged(_ => updateDefaultState(), true);
FinishTransforms(true);
ScheduleAfterChildren(() =>
{
revertButton.RelativeSizeAxes = Axes.None;
revertButton.Height = ((Drawable)Control).DrawHeight;
});
}
private void updateDefaultState()