             // Calculate size
             var childWidth:Number = NaN;
             var childHeight:Number = NaN;
-            var maxX:Number = 0;
-            var maxY:Number = 0;
             
             if (!isNaN(left) && !isNaN(right))
                 childWidth = unscaledWidth - right - left;

            return;

        var count:int = layoutTarget.numLayoutItems;
        for (var i:int = 0; i < count; i++)
        {
            var layoutItem:ILayoutItem = layoutTarget.getLayoutItemAt(i);

            layoutItem.setActualPosition(childX, childY);
            
            // update content limits
            maxX = Math.max(maxX, childX + actualSize.x);
            maxY = Math.max(maxY, childY + actualSize.y);
        }

        layoutTarget.setContentSize(maxX, maxY);
    }
}
