     /**
      *  @private
      * 
-     *  If the element at index i is non-null and includeInLayout,
-     *  then return it's actual bounds, otherwise return null.
-     */
-    private function layoutElementBounds(g:GroupBase, i:int):Rectangle
-    {
-        if (useVirtualLayout)
-            return llv.getBounds(i);  
-        {        
-            var element:ILayoutElement = g.getElementAt(i);
-            if (element && element.includeInLayout)
-            {
-                return new Rectangle(element.getLayoutBoundsX(),
-                                     element.getLayoutBoundsY(),
-                                     element.getLayoutBoundsWidth(),
-                                     element.getLayoutBoundsHeight());        
-            }
-        }
-        return null;    
-    }
-
-    /**
-     *  @private
-     * 
      *  Returns the actual position/size Rectangle of the first partially 
      *  visible or not-visible, non-null includeInLayout element, beginning
      *  with the element at index i, searching in direction dir (dir must

    /**
     *  @private 
     */
    override protected function elementBoundsLeftOfScrollRect(scrollRect:Rectangle):Rectangle
    {
        return findLayoutElementBounds(target, firstIndexInView, -1, scrollRect);
    } 

        _lastIndexInView = lastIndex;
        dispatchEvent(new Event("indexInViewChanged"));
    }
    
    //--------------------------------------------------------------------------
    //
    //  Methods
    //
    //--------------------------------------------------------------------------
    
    /**
     *  @private
     */
    override protected function getElementBounds(index:int):Rectangle
    {
        if (!useVirtualLayout)
            return super.getElementBounds(index);

        var g:GroupBase = GroupBase(target);
        if (!g || (index < 0) || (index >= g.numElements)) 
            return null;

        return llv.getBounds(index);
    }    
    
    /**
     *  An index is "in view" if the corresponding non-null layout element is 
     *  within the horizontal limits of the layout target's scrollRect
