mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Prevent scrolling to top on build change; Add bottom margin
This commit is contained in:
parent
ce0029eabf
commit
50c4f6ff95
@ -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();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user