mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 07:32:55 +08:00
Fix settings not offsetting scroll operations by fixed header content
This commit is contained in:
parent
8460e29bcb
commit
f4fd263671
@ -123,6 +123,8 @@ namespace osu.Game.Graphics.Containers
|
|||||||
originalSectionsMargin = sectionsContainer.Margin;
|
originalSectionsMargin = sectionsContainer.Margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ScrollTo(Drawable section) => ScrollContainer.ScrollTo(ScrollContainer.GetChildPosInContent(section) - FixedHeader.BoundingBox.Height);
|
||||||
|
|
||||||
private float lastKnownScroll;
|
private float lastKnownScroll;
|
||||||
protected override void UpdateAfterChildren()
|
protected override void UpdateAfterChildren()
|
||||||
{
|
{
|
||||||
|
@ -93,7 +93,7 @@ namespace osu.Game.Overlays
|
|||||||
new SidebarButton
|
new SidebarButton
|
||||||
{
|
{
|
||||||
Section = section,
|
Section = section,
|
||||||
Action = b => sectionsContainer.ScrollContainer.ScrollTo(b),
|
Action = s => sectionsContainer.ScrollTo(s),
|
||||||
}
|
}
|
||||||
).ToArray()
|
).ToArray()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user