1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 12:07:23 +08:00

Merge pull request #149 from peppy/general-fixes

Use margin instead of padding so mouseDown events on the sidebar butt…
This commit is contained in:
Dean Herbert 2016-11-09 12:39:42 +09:00 committed by GitHub
commit 485f60b418

View File

@ -28,7 +28,6 @@ namespace osu.Game.Overlays
private const float width = 400; private const float width = 400;
private const float sidebar_width = 60; private const float sidebar_width = 60;
private const float sidebar_padding = 10;
private ScrollContainer scrollContainer; private ScrollContainer scrollContainer;
private OptionsSidebar sidebar; private OptionsSidebar sidebar;
@ -65,7 +64,7 @@ namespace osu.Game.Overlays
ScrollDraggerAnchor = Anchor.TopLeft, ScrollDraggerAnchor = Anchor.TopLeft,
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
Width = width, Width = width,
Padding = new MarginPadding { Left = sidebar_width }, Margin = new MarginPadding { Left = sidebar_width },
Children = new[] Children = new[]
{ {
new FlowContainer new FlowContainer