mirror of https://github.com/ppy/osu
Fix nested ui scale example screens no longer fitting
This commit is contained in:
parent
63b9e01d38
commit
493798ae5e
|
@ -35,6 +35,8 @@ public class ScreenUIScale : FirstRunSetupScreen
|
|||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
{
|
||||
const float screen_width = 640;
|
||||
|
||||
Content.Children = new Drawable[]
|
||||
{
|
||||
new OsuTextFlowContainer(cp => cp.Font = OsuFont.Default.With(size: CONTENT_FONT_SIZE))
|
||||
|
@ -54,7 +56,7 @@ private void load(OsuConfigManager config)
|
|||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
RelativeSizeAxes = Axes.None,
|
||||
Size = new Vector2(960, 960 / 16f * 9 / 2),
|
||||
Size = new Vector2(screen_width, screen_width / 16f * 9 / 2),
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new GridContainer
|
||||
|
|
Loading…
Reference in New Issue