Fix not setting Origin + Anchors properly when reversing.

This commit is contained in:
smoogipooo 2017-08-08 14:10:26 +09:00
parent 80c95d5b26
commit 25202b522d
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}