1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

change WikiArticlePage to extends CompositeDrawable

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-06-04 23:54:50 +07:00
parent f07d4532d9
commit 5ee77925e4
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -10,7 +10,7 @@ using osu.Game.Overlays.Wiki.Markdown;
namespace osu.Game.Overlays.Wiki
{
public class WikiArticlePage : GridContainer
public class WikiArticlePage : CompositeDrawable
{
public Container SidebarContainer { get; }
@ -18,18 +18,22 @@ namespace osu.Game.Overlays.Wiki
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
WikiSidebar sidebar;
InternalChild = new GridContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
RowDimensions = new[]
{
new Dimension(GridSizeMode.AutoSize),
};
},
ColumnDimensions = new[]
{
new Dimension(GridSizeMode.AutoSize),
new Dimension(),
};
WikiSidebar sidebar;
},
Content = new[]
{
new Drawable[]
@ -55,6 +59,7 @@ namespace osu.Game.Overlays.Wiki
OnAddHeading = sidebar.AddEntry,
}
},
},
};
}