mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 02:32:55 +08:00
Unify usages of field and property.
This commit is contained in:
parent
18295a9b97
commit
a187e50889
@ -166,12 +166,12 @@ namespace osu.Game.Graphics.Containers
|
|||||||
{
|
{
|
||||||
lastKnownScroll = currentScroll;
|
lastKnownScroll = currentScroll;
|
||||||
|
|
||||||
if (expandableHeader != null && fixedHeader != null)
|
if (ExpandableHeader != null && FixedHeader != null)
|
||||||
{
|
{
|
||||||
float offset = Math.Min(expandableHeader.LayoutSize.Y, currentScroll);
|
float offset = Math.Min(ExpandableHeader.LayoutSize.Y, currentScroll);
|
||||||
|
|
||||||
expandableHeader.Y = -offset;
|
ExpandableHeader.Y = -offset;
|
||||||
fixedHeader.Y = -offset + expandableHeader.LayoutSize.Y;
|
FixedHeader.Y = -offset + ExpandableHeader.LayoutSize.Y;
|
||||||
}
|
}
|
||||||
|
|
||||||
headerBackgroundContainer.Height = (ExpandableHeader?.LayoutSize.Y ?? 0) + (FixedHeader?.LayoutSize.Y ?? 0);
|
headerBackgroundContainer.Height = (ExpandableHeader?.LayoutSize.Y ?? 0) + (FixedHeader?.LayoutSize.Y ?? 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user