1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 12:02:55 +08:00

Make ChangelogChart's child buffered

This commit is contained in:
HoutarouOreki 2018-07-25 18:55:02 +02:00
parent dcb5eb1767
commit fb8ea770ae

View File

@ -13,12 +13,13 @@ using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Overlays.Changelog
{
public class ChangelogChart : BufferedContainer
public class ChangelogChart : Container
{
private const float height = 100;
private const float transition_duration = 300;
private readonly Container container;
// why make the child buffered? https://streamable.com/swbdj
private readonly BufferedContainer container;
private readonly Box background;
private APIAccess api;
@ -26,7 +27,7 @@ namespace osu.Game.Overlays.Changelog
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Child = container = new Container
Child = container = new BufferedContainer
{
RelativeSizeAxes = Axes.X,
Height = height,