1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 11:12:54 +08:00

Prevent scrolling to top on build change; Add bottom margin

This commit is contained in:
HoutarouOreki 2018-07-21 06:37:42 +02:00
parent ce0029eabf
commit 50c4f6ff95

View File

@ -25,24 +25,22 @@ namespace osu.Game.Overlays.Changelog
Direction = FillDirection.Vertical;
Padding = new MarginPadding
{
Left = 70,
Right = 70,
Horizontal = 70,
Bottom = 100,
};
}
private void add(APIChangelog changelogBuild)
{
Add(changelogContentGroup = new ChangelogContentGroup(changelogBuild)
Child = changelogContentGroup = new ChangelogContentGroup(changelogBuild)
{
PreviousRequested = showPrevious,
NextRequested = showNext,
});
};
}
public void ShowBuild(APIChangelog changelog)
{
Clear();
add(changelog);
CurrentBuild = changelog;
fetchChangelogBuild(changelog);
}
@ -83,6 +81,7 @@ namespace osu.Game.Overlays.Changelog
req.Success += res =>
{
CurrentBuild = res;
add(CurrentBuild);
changelogContentGroup.GenerateText(CurrentBuild.ChangelogEntries);
updateChevronTooltips();
};