         if (!g)
             return;     
 
-        var n:int = g.numLayoutElements - 1;
+        var n:int = g.numElements - 1;
         if (n < 0) 
         {
             setIndexInView(-1, -1);

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


        var i0:int;
        var i1:int;
        if (useVirtualLayout)
        {
            i0 = llv.indexOf(y0);
            i1 = llv.indexOf(y1);
