         }
         return spaceToDistribute;
     }
+    
+    override public function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
+    {
+        super.updateDisplayList(unscaledWidth, unscaledHeight);
+        
+        var layoutTarget:GroupBase = target; 
+        if (!layoutTarget)
+            return;
+            
+        if (virtualLayout) 
+            updateDisplayListVirtual();
+        else
+            updateDisplayListReal();
+    } 
 }
 }
 

        for (; (y < maxVisibleY) && (index < eltCount); index++)
        {
            var elt:ILayoutElement = layoutTarget.getLayoutElementAt(index);
            var h:Number = elt.getPreferredBoundsHeight();
            var w:Number = calculateElementWidth(elt, targetWidth, contentWidth);
            var x:Number = calculateElementX(elt, w, contentWidth);
            elt.setLayoutBoundsPosition(x, y);
            elt.setLayoutBoundsSize(w, elt.getPreferredBoundsHeight());            
            llv.cacheDimensions(index, elt);
            y += h + gap;
        }

        // Second pass: if neccessary, fix up x and width values based
        // on the updated contentWidth
        var endIndex:int = index - 1;
        var finalContentWidth:Number = llv.minorSize;
        if ((finalContentWidth != contentWidth) &&
            (horizontalAlign != HorizontalAlign.LEFT) &&
            (horizontalAlign != HorizontalAlign.JUSTIFY))
        {
            contentWidth = finalContentWidth;
            for (index = startIndex; index < eltCount; index++)
            {
                elt = layoutTarget.getLayoutElementAt(index);
                w = calculateElementWidth(elt, targetWidth, contentWidth);
                x = calculateElementX(elt, w, contentWidth);
                elt.setLayoutBoundsPosition(x, elt.getLayoutBoundsY());
                elt.setLayoutBoundsSize(w, elt.getLayoutBoundsHeight());         
            }
        }
        setRowCount(index - startIndex);
        setIndexInView(startIndex, endIndex);
        layoutTarget.setContentSize(contentWidth, llv.end(llv.length - 1));

    [Inspectable(category="General")]

    /**
     *  Specifies that layout elements are to be allocated their 
     *  preferred height.
     * 
     *  Setting this property to false specifies fixed height rows.
     * 
     *  If false, the actual height of each layout element will be 
     *  the value value of <code>rowHeight</code>.
     * 
     *  Setting this property to false causes the layout to ignore 
     *  layout elements' percentHeight.
     * 
     *  @default true
     */
