Make dropdown not resize

This commit is contained in:
ansel 2022-10-20 18:22:55 +03:00
parent 635900085c
commit da4f04ace7
1 changed files with 9 additions and 3 deletions

View File

@ -7,6 +7,7 @@
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Graphics.UserInterfaceV2;
@ -30,7 +31,7 @@ public ReportCommentPopover(DrawableComment comment)
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
Child = new FillFlowContainer
Child = new ReverseChildIDFillFlowContainer<Drawable>
{
Direction = FillDirection.Vertical,
Width = 500,
@ -53,9 +54,14 @@ private void load(OsuColour colours)
Text = UsersStrings.ReportReason,
Font = OsuFont.Torus.With(size: 20),
},
reason = new OsuEnumDropdown<CommentReportReason>
new Container
{
RelativeSizeAxes = Axes.X
RelativeSizeAxes = Axes.X,
Height = 40,
Child = reason = new OsuEnumDropdown<CommentReportReason>
{
RelativeSizeAxes = Axes.X
}
},
new OsuSpriteText
{