mirror of https://github.com/ppy/osu
Make dropdown not resize
This commit is contained in:
parent
635900085c
commit
da4f04ace7
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue