Give ZoomableScrollContainer an initial width

This commit is contained in:
David Zhao
2019-05-08 13:37:03 +09:00
parent f05471aa18
commit ff3c226596
2 changed files with 44 additions and 24 deletions

View File

@ -102,6 +102,14 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
return true;
}
protected override void LoadComplete()
{
base.LoadComplete();
// This width only gets updated on the application of a transform, so this needs to be initialized here.
zoomedContent.Width = DrawWidth * currentZoom;
}
private float zoomTarget = 1;
private void setZoomTarget(float newZoom, float focusPoint)