mirror of
https://github.com/ppy/osu.git
synced 2026-06-03 22:14:57 +08:00
Fix revert button not always matching control's size
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user