mirror of
https://github.com/ppy/osu
synced 2024-12-27 01:12:45 +00:00
Merge pull request #14848 from Joehuu/fix-dropdown-text-overflow
Fix text overflowing on dropdown headers
This commit is contained in:
commit
671fe77213
@ -274,21 +274,40 @@ namespace osu.Game.Graphics.UserInterface
|
||||
CornerRadius = corner_radius;
|
||||
Height = 40;
|
||||
|
||||
Foreground.Children = new Drawable[]
|
||||
Foreground.Child = new GridContainer
|
||||
{
|
||||
Text = new OsuSpriteText
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RowDimensions = new[]
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
new Dimension(GridSizeMode.AutoSize),
|
||||
},
|
||||
Icon = new SpriteIcon
|
||||
ColumnDimensions = new[]
|
||||
{
|
||||
Icon = FontAwesome.Solid.ChevronDown,
|
||||
Anchor = Anchor.CentreRight,
|
||||
Origin = Anchor.CentreRight,
|
||||
Margin = new MarginPadding { Right = 5 },
|
||||
Size = new Vector2(12),
|
||||
new Dimension(),
|
||||
new Dimension(GridSizeMode.AutoSize),
|
||||
},
|
||||
Content = new[]
|
||||
{
|
||||
new Drawable[]
|
||||
{
|
||||
Text = new OsuSpriteText
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Truncate = true,
|
||||
},
|
||||
Icon = new SpriteIcon
|
||||
{
|
||||
Icon = FontAwesome.Solid.ChevronDown,
|
||||
Anchor = Anchor.CentreRight,
|
||||
Origin = Anchor.CentreRight,
|
||||
Margin = new MarginPadding { Horizontal = 5 },
|
||||
Size = new Vector2(12),
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
AddInternal(new HoverClickSounds());
|
||||
|
Loading…
Reference in New Issue
Block a user