mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 08:07:24 +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[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new WikiMarkdownImage(linkInline)
|
new BlockMarkdownImage(linkInline),
|
||||||
{
|
|
||||||
Anchor = Anchor.TopCentre,
|
|
||||||
Origin = Anchor.TopCentre,
|
|
||||||
},
|
|
||||||
parentTextComponent.CreateSpriteText().With(t =>
|
parentTextComponent.CreateSpriteText().With(t =>
|
||||||
{
|
{
|
||||||
t.Text = linkInline.Title;
|
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