1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-14 05:47:20 +08:00

Allow scrollbar to overlap content

The content is already padded enough to have the scrollbar sit on top.
Having the content change padding when the scrollbar appears gives an
unpleasent experience (especially when the scrollbar is hidden at first
but the user increases the content's height by clicking on a dropdown or
something)
This commit is contained in:
Salman Ahmed 2024-07-04 07:36:31 +03:00
parent 33711ba616
commit 585e09981f

View File

@ -87,7 +87,6 @@ namespace osu.Game.Overlays.Mods
scrollContainer = new OsuScrollContainer(Direction.Vertical)
{
RelativeSizeAxes = Axes.X,
ScrollbarOverlapsContent = false,
// 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 },