mirror of https://github.com/ppy/osu
Fix not setting Origin + Anchors properly when reversing.
This commit is contained in:
parent
80c95d5b26
commit
25202b522d
|
@ -85,11 +85,13 @@ protected override void Update()
|
|||
{
|
||||
RelativeChildSize = new Vector2((ScrollingAxes & Axes.X) > 0 ? (float)-VisibleTimeRange : 1, (ScrollingAxes & Axes.Y) > 0 ? (float)-VisibleTimeRange : 1);
|
||||
RelativeChildOffset = new Vector2((ScrollingAxes & Axes.X) > 0 ? (float)VisibleTimeRange : 0, (ScrollingAxes & Axes.Y) > 0 ? (float)VisibleTimeRange : 0);
|
||||
Origin = Anchor = Anchor.BottomLeft;
|
||||
}
|
||||
else
|
||||
{
|
||||
RelativeChildSize = new Vector2((ScrollingAxes & Axes.X) > 0 ? (float)VisibleTimeRange : 1, (ScrollingAxes & Axes.Y) > 0 ? (float)VisibleTimeRange : 1);
|
||||
RelativeChildOffset = Vector2.Zero;
|
||||
Anchor = Anchor = Anchor.TopLeft;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue