mirror of
https://github.com/ppy/osu
synced 2025-01-11 08:39:31 +00:00
Don't derive ScrollContainer unnecessarily.
This commit is contained in:
parent
d70e8806b4
commit
d41d7b8e9a
@ -59,8 +59,9 @@ namespace osu.Game.Overlays
|
||||
Colour = Color4.Black,
|
||||
Alpha = 0.6f,
|
||||
},
|
||||
scrollContainer = new PaddedScrollContainer
|
||||
scrollContainer = new ScrollContainer
|
||||
{
|
||||
ScrollbarOverlapsContent = false,
|
||||
ScrollDraggerAnchor = Anchor.TopLeft,
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
Width = width,
|
||||
@ -139,13 +140,5 @@ namespace osu.Game.Overlays
|
||||
sidebar.MoveToX(-sidebar_width, 600, EasingTypes.OutQuint);
|
||||
FadeTo(0, 300);
|
||||
}
|
||||
|
||||
private class PaddedScrollContainer : ScrollContainer
|
||||
{
|
||||
public PaddedScrollContainer()
|
||||
{
|
||||
Content.Padding = new MarginPadding { Left = sidebar_padding };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user