1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:20:04 +08:00

add panels to grid content

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-23 19:07:22 +07:00
parent 24fef221e3
commit 10c4ba3a74
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -28,6 +28,8 @@ namespace osu.Game.Overlays.Wiki
var html = new HtmlDocument();
html.LoadHtml(Markdown);
var panels = createPanels(html).ToArray();
Children = new Drawable[]
{
createBlurb(html),
@ -35,6 +37,8 @@ namespace osu.Game.Overlays.Wiki
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
RowDimensions = Enumerable.Repeat(new Dimension(GridSizeMode.AutoSize), panels.Length).ToArray(),
Content = panels,
},
};
}