1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 15:43:04 +08:00

Update with framework changes.

This commit is contained in:
smoogipooo
2017-06-05 20:16:37 +09:00
Unverified
parent 4307242bb6
commit d2ced2ea79
2 changed files with 3 additions and 3 deletions
@@ -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);