Hide graph when it's unavailable; Scroll change

This commit is contained in:
HoutarouOreki
2018-07-25 00:59:21 +02:00
parent a00f4e8178
commit cd79c2cc45
2 changed files with 26 additions and 20 deletions

View File

@ -197,13 +197,13 @@ namespace osu.Game.Overlays
badges.SelectUpdateStream(build.UpdateStream.Name);
chart.ShowUpdateStream(build.UpdateStream.Name);
req.Success += APIChangelog =>
req.Success += apiChangelog =>
{
listing.Hide();
content.Show();
content.ShowBuild(APIChangelog);
content.ShowBuild(apiChangelog);
if (scroll.Current > scroll.GetChildPosInContent(content))
scroll.ScrollTo(content);
scroll.ScrollTo(chart);
if (isAtListing)
savedScrollPosition = scroll.Current;
isAtListing = false;