Added children measurement, to fix layout issues.