         if (!layoutTarget)
             return;
         
-        var layoutItem:ILayoutItem;
-        var count:uint = layoutTarget.numLayoutItems;
+        var layoutElement:ILayoutElement;
+        var count:uint = layoutTarget.numLayoutElements;
         
         // If verticalAlign is top, we don't need to figure out the contentHeight.
-        // Otherwise the contentHeight is used to position the item and even size 
-        // the item if it's "contentJustify" or "justify".
+        // Otherwise the contentHeight is used to position the element and even size 
+        // the element if it's "contentJustify" or "justify".
         var contentHeight:Number = unscaledHeight;
         
         

    }
    
    /**
     *  An index is "in view" if the corresponding non-null layout item is 
     *  within the horizontal limits of the layout target's scrollRect
     *  and included in the layout.
     *  

        if (!g)
            return 0;     

        var maxIndex:int = g.numLayoutElements -1;
        if (maxIndex < 0)
            return 0;
            
