1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 03:15:08 +08:00

Add comment explaining loading container padding

This commit is contained in:
Joseph Madamba 2023-03-24 18:42:34 -07:00
parent d9571b6fc9
commit 450c5cef07
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -81,6 +81,7 @@ namespace osu.Game.Overlays
{ {
base.UpdateAfterChildren(); base.UpdateAfterChildren();
// don't block header by applying padding equal to the visible header height
loadingContainer.Padding = new MarginPadding { Top = Math.Max(0, Header.Height - ScrollFlow.Current) }; loadingContainer.Padding = new MarginPadding { Top = Math.Max(0, Header.Height - ScrollFlow.Current) };
} }
} }