1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Update with framework changes.

This commit is contained in:
smoogipooo 2017-06-05 20:16:37 +09:00
parent 4307242bb6
commit d2ced2ea79
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit cfbfbe63294b88bdcdfb92fd6ae69aa826ff62c4
Subproject commit 150c80560480215b1081228b9ef757c21f24a32c

View File

@ -120,8 +120,8 @@ namespace osu.Game.Rulesets.Timing.Drawables
if (!Children.Any())
return;
float width = Children.Select(child => child.X + child.Width).Max() - RelativeChildOffset.X;
float height = Children.Select(child => child.Y + child.Height).Max() - RelativeChildOffset.Y;
float width = Children.Select(child => child.X + child.Width).Max() - RelativePositionOffset.X;
float height = Children.Select(child => child.Y + child.Height).Max() - RelativePositionOffset.Y;
Size = new Vector2((autoSizingAxes & Axes.X) > 0 ? width : Size.X, (autoSizingAxes & Axes.Y) > 0 ? height : Size.Y);