mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
add BlockImageContainer
change from AutoSize Both to AutoSize Y and RelativeSize X
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user