         var targetHeight:Number = layoutTarget.height;
         
         var layoutElement:ILayoutElement;
-        var count:uint = layoutTarget.numLayoutElements;
+        var count:uint = layoutTarget.numElements;
         
         // If verticalAlign is top, we don't need to figure out the contentHeight.
         // Otherwise the contentHeight is used to position the element and even size 

     */
    private function layoutElementBounds(g:GroupBase, i:int):Rectangle
    {
        if (virtualLayout)
            return llv.getBounds(i);  
        {        
            var element:ILayoutElement = g.getLayoutElementAt(i);
            if (element && element.includeInLayout)
            {
                return new Rectangle(element.getLayoutBoundsX(),


import mx.components.baseClasses.GroupBase;
import mx.core.ILayoutElement;

import mx.containers.utilityClasses.Flex;
import mx.events.PropertyChangeEvent;
