         invalidateDisplayObjectOrdering();
         invalidateSize();
         invalidateDisplayList();
+
+        if (layout)
+            layout.elementRemoved(index);     
     }
     
     /**

            }
        }
        
        _mxmlContent = value;
        
        if (_mxmlContent != null)
        {

     */
    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));
        
