mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 18:52:55 +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;
|
Direction = FillDirection.Vertical;
|
||||||
Padding = new MarginPadding
|
Padding = new MarginPadding
|
||||||
{
|
{
|
||||||
Left = 70,
|
Horizontal = 70,
|
||||||
Right = 70,
|
Bottom = 100,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private void add(APIChangelog changelogBuild)
|
private void add(APIChangelog changelogBuild)
|
||||||
{
|
{
|
||||||
Add(changelogContentGroup = new ChangelogContentGroup(changelogBuild)
|
Child = changelogContentGroup = new ChangelogContentGroup(changelogBuild)
|
||||||
{
|
{
|
||||||
PreviousRequested = showPrevious,
|
PreviousRequested = showPrevious,
|
||||||
NextRequested = showNext,
|
NextRequested = showNext,
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ShowBuild(APIChangelog changelog)
|
public void ShowBuild(APIChangelog changelog)
|
||||||
{
|
{
|
||||||
Clear();
|
|
||||||
add(changelog);
|
|
||||||
CurrentBuild = changelog;
|
CurrentBuild = changelog;
|
||||||
fetchChangelogBuild(changelog);
|
fetchChangelogBuild(changelog);
|
||||||
}
|
}
|
||||||
@ -83,6 +81,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
req.Success += res =>
|
req.Success += res =>
|
||||||
{
|
{
|
||||||
CurrentBuild = res;
|
CurrentBuild = res;
|
||||||
|
add(CurrentBuild);
|
||||||
changelogContentGroup.GenerateText(CurrentBuild.ChangelogEntries);
|
changelogContentGroup.GenerateText(CurrentBuild.ChangelogEntries);
|
||||||
updateChevronTooltips();
|
updateChevronTooltips();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user