mirror of
https://github.com/ppy/osu.git
synced 2025-03-19 01:17:19 +08:00
Use grid container to avoid layout changes when changing language
This commit is contained in:
parent
0db1caf591
commit
3b554140db
@ -29,11 +29,27 @@ namespace osu.Game.Overlays.FirstRunSetup
|
||||
{
|
||||
Content.Children = new Drawable[]
|
||||
{
|
||||
new OsuTextFlowContainer(cp => cp.Font = OsuFont.Default.With(size: CONTENT_FONT_SIZE))
|
||||
new GridContainer
|
||||
{
|
||||
Text = FirstRunSetupOverlayStrings.WelcomeDescription,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RowDimensions = new[]
|
||||
{
|
||||
// Avoid height changes when changing language.
|
||||
new Dimension(GridSizeMode.AutoSize, minSize: 100),
|
||||
},
|
||||
Content = new[]
|
||||
{
|
||||
new Drawable[]
|
||||
{
|
||||
new OsuTextFlowContainer(cp => cp.Font = OsuFont.Default.With(size: CONTENT_FONT_SIZE))
|
||||
{
|
||||
Text = FirstRunSetupOverlayStrings.WelcomeDescription,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
new LanguageSelectionFlow
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user