mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09: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[]
|
Content.Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new OsuTextFlowContainer(cp => cp.Font = OsuFont.Default.With(size: CONTENT_FONT_SIZE))
|
new GridContainer
|
||||||
{
|
{
|
||||||
Text = FirstRunSetupOverlayStrings.WelcomeDescription,
|
|
||||||
RelativeSizeAxes = Axes.X,
|
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
|
new LanguageSelectionFlow
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user