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