1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 00:37:18 +08:00

add BlockImageContainer

change from AutoSize Both to AutoSize Y and RelativeSize X
This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-06-28 21:04:56 +07:00
parent 1c074ff018
commit 2b8d41c045
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -50,6 +50,18 @@ namespace osu.Game.Overlays.Wiki.Markdown
AutoSizeAxes = Axes.Y;
RelativeSizeAxes = Axes.X;
}
protected override ImageContainer CreateImageContainer(string url) => new BlockImageContainer(url);
private class BlockImageContainer : ImageContainer
{
public BlockImageContainer(string url)
: base(url)
{
AutoSizeAxes = Axes.Y;
RelativeSizeAxes = Axes.X;
}
}
}
}
}