From d41d7b8e9ab99156b2722fc2078d9a295d441384 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 9 Nov 2016 12:10:22 +0900 Subject: [PATCH] Don't derive ScrollContainer unnecessarily. --- osu.Game/Overlays/OptionsOverlay.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/osu.Game/Overlays/OptionsOverlay.cs b/osu.Game/Overlays/OptionsOverlay.cs index be5261d28f..e0f7af9f3a 100644 --- a/osu.Game/Overlays/OptionsOverlay.cs +++ b/osu.Game/Overlays/OptionsOverlay.cs @@ -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 }; - } - } } }