Skip to content

Commit 3d22a70

Browse files
author
Marvin Schürz
committed
Remove SkipInitialAutoSizeTransform property
1 parent 20a7ced commit 3d22a70

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

osu.Framework.Tests/Visual/Containers/TestSceneCompositeDrawable.cs

-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ public void TestSkipInitialAutoSizeTransform()
103103
Masking = true,
104104
AutoSizeAxes = Axes.Both,
105105
AutoSizeDuration = 1000,
106-
SkipInitialAutoSizeTransform = true,
107106
Child = child = new Box { Size = new Vector2(100) },
108107
};
109108
});

osu.Framework/Graphics/Containers/CompositeDrawable.cs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1824,12 +1824,6 @@ protected set
18241824
/// </summary>
18251825
public Easing AutoSizeEasing { get; protected set; }
18261826

1827-
/// <summary>
1828-
/// Whether the first resize should be instantaneously when autosize gets applied for the first time and <see cref="AutoSizeDuration"/>
1829-
/// is non-zero.
1830-
/// </summary>
1831-
public bool SkipInitialAutoSizeTransform { get; protected set; }
1832-
18331827
/// <summary>
18341828
/// Fired after this <see cref="CompositeDrawable"/>'s <see cref="Size"/> is updated through autosize.
18351829
/// </summary>
@@ -1978,7 +1972,7 @@ private void updateChildrenSizeDependencies()
19781972

19791973
private void autoSizeResizeTo(Vector2 newSize, double duration = 0, Easing easing = Easing.None)
19801974
{
1981-
if (SkipInitialAutoSizeTransform && !didInitialAutosize)
1975+
if (!didInitialAutosize)
19821976
{
19831977
duration = 0;
19841978
didInitialAutosize = true;

osu.Framework/Graphics/Containers/Container.cs

-10
Original file line numberDiff line numberDiff line change
@@ -511,16 +511,6 @@ public void ChangeChildDepth(T child, float newDepth)
511511
set => base.AutoSizeEasing = value;
512512
}
513513

514-
/// <summary>
515-
/// Whether the first resize should be instantaneously when autosize gets applied for the first time and <see cref="AutoSizeDuration"/>
516-
/// is non-zero.
517-
/// </summary>
518-
public new bool SkipInitialAutoSizeTransform
519-
{
520-
get => base.SkipInitialAutoSizeTransform;
521-
set => base.SkipInitialAutoSizeTransform = value;
522-
}
523-
524514
public struct Enumerator : IEnumerator<T>
525515
{
526516
private Container<T> container;

0 commit comments

Comments
 (0)