mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
add BlockMarkdownImage
change from AutoSize Both to AutoSize Y and RelativeSize X
This commit is contained in:
parent
0e29ae037b
commit
1c074ff018
@ -32,11 +32,7 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new WikiMarkdownImage(linkInline)
|
||||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
},
|
||||
new BlockMarkdownImage(linkInline),
|
||||
parentTextComponent.CreateSpriteText().With(t =>
|
||||
{
|
||||
t.Text = linkInline.Title;
|
||||
@ -45,5 +41,15 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
private class BlockMarkdownImage : WikiMarkdownImage
|
||||
{
|
||||
public BlockMarkdownImage(LinkInline linkInline)
|
||||
: base(linkInline)
|
||||
{
|
||||
AutoSizeAxes = Axes.Y;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user