mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +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;
|
AutoSizeAxes = Axes.Y;
|
||||||
RelativeSizeAxes = Axes.X;
|
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