mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 05:42:54 +08:00
Avoid running initial layout transform in LayoutSettings
This commit is contained in:
parent
cecb312e77
commit
c0130da235
@ -97,8 +97,6 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
||||
Direction = FillDirection.Vertical,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
AutoSizeDuration = transition_duration,
|
||||
AutoSizeEasing = Easing.OutQuint,
|
||||
Masking = true,
|
||||
Children = new[]
|
||||
{
|
||||
@ -177,6 +175,9 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
||||
scalingMode.BindValueChanged(mode =>
|
||||
{
|
||||
scalingSettings.ClearTransforms();
|
||||
|
||||
scalingSettings.AutoSizeDuration = transition_duration;
|
||||
scalingSettings.AutoSizeEasing = Easing.OutQuint;
|
||||
scalingSettings.AutoSizeAxes = mode.NewValue != ScalingMode.Off ? Axes.Y : Axes.None;
|
||||
|
||||
if (mode.NewValue == ScalingMode.Off)
|
||||
|
Loading…
Reference in New Issue
Block a user