Add comment.

This commit is contained in:
smoogipooo 2017-06-15 16:15:41 +09:00
parent f07a31b2ca
commit aa830e435a
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ protected override void UpdateAfterChildren()
// This ends up being the total duration of our children, however for now this is a more sure-fire way to calculate this
// than the above due to some undesired masking optimisations causing some hit objects to be culled...
// Todo: When this is investigated more we should use the above method as it is a little more exact
// Todo: This is not working correctly in the case that hit objects are absolutely-sized - needs a proper looking into in osu!framework
float width = Children.Select(child => child.X + child.Width).Max() - RelativeChildOffset.X;
float height = Children.Select(child => child.Y + child.Height).Max() - RelativeChildOffset.Y;