1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 07:27:25 +08:00

Add extra margin to avoid 1px artifacts

This commit is contained in:
Salman Ahmed 2024-06-25 06:08:13 +03:00
parent 0a72394c8a
commit 57ee794398

View File

@ -74,7 +74,9 @@ namespace osu.Game.Overlays.Mods
{
RelativeSizeAxes = Axes.X,
ScrollbarOverlapsContent = false,
Margin = new MarginPadding { Top = header_height },
// The +2f is a workaround for masking issues (see https://github.com/ppy/osu-framework/issues/1675#issuecomment-910023157)
// Note that this actually causes the full scroll range to be reduced by 2px at the bottom, but it's not really noticeable.
Margin = new MarginPadding { Top = header_height + 2f },
Child = sectionsFlow = new FillFlowContainer
{
RelativeSizeAxes = Axes.X,