mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 10:03:05 +08:00
Fix TestSceneTabletSettings
falling off the bottom of the screen
This commit is contained in:
parent
85167d8de6
commit
d0ff5be7e6
@ -11,6 +11,7 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Input.Handlers.Tablet;
|
using osu.Framework.Input.Handlers.Tablet;
|
||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
|
using osu.Game.Graphics.Containers;
|
||||||
using osu.Game.Overlays;
|
using osu.Game.Overlays;
|
||||||
using osu.Game.Overlays.Settings;
|
using osu.Game.Overlays.Settings;
|
||||||
using osu.Game.Overlays.Settings.Sections.Input;
|
using osu.Game.Overlays.Settings.Sections.Input;
|
||||||
@ -36,12 +37,17 @@ namespace osu.Game.Tests.Visual.Settings
|
|||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
settings = new TabletSettings(tabletHandler)
|
new OsuScrollContainer(Direction.Vertical)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.None,
|
RelativeSizeAxes = Axes.X,
|
||||||
Width = SettingsPanel.PANEL_WIDTH,
|
AutoSizeAxes = Axes.Y,
|
||||||
Anchor = Anchor.TopCentre,
|
Child = settings = new TabletSettings(tabletHandler)
|
||||||
Origin = Anchor.TopCentre,
|
{
|
||||||
|
RelativeSizeAxes = Axes.None,
|
||||||
|
Width = SettingsPanel.PANEL_WIDTH,
|
||||||
|
Anchor = Anchor.TopCentre,
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user