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:
parent
1c074ff018
commit
2b8d41c045
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user