     mx_internal function elementAdded(element:IVisualElement, index:int):void
     {
         var child:DisplayObject;
+        
+        if (layout)
+            layout.elementAdded(index);        
                 
         if (element.layer != 0)
             invalidateLayering();

     */
    mx_internal function elementRemoved(element:IVisualElement, index:int):void
    {
        var childDO:DisplayObject = element as DisplayObject;
        
        dispatchEvent(new ElementExistenceEvent(
                      ElementExistenceEvent.ELEMENT_REMOVE, false, false, element, index));
        

            }
        }
        
        _mxmlContent = value.concat();  // defensive copy
        
        if (_mxmlContent != null)
        {
