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:
parent
f07d4532d9
commit
5ee77925e4
@ -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,
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user