             if (BitFlagUtil.isSet(contentGroupProperties[index] as uint, CONTENT_PROPERTY_FLAG))
                 newContentGroupProperties.content = group.getMXMLContent();
             
+            if (BitFlagUtil.isSet(contentGroupProperties[index] as uint, LAYOUT_PROPERTY_FLAG))
+                newContentGroupProperties.layout = group.layout;
+            
             contentGroupProperties[index] = newContentGroupProperties;
+            
             group.mxmlContent = null;
+            group.layout = null;
         }
     }
 }


package spark.components
{
import flash.events.Event;

import mx.core.IVisualElement;
import mx.core.mx_internal;
import mx.utils.BitFlagUtil;

import spark.components.supportClasses.ButtonBase;
import spark.components.supportClasses.SkinnableComponent;
import spark.layouts.supportClasses.LayoutBase;


                    LAYOUT_PROPERTY_FLAG, true);
        }
        else
            contentGroupProperties[TITLE_GROUP_PROPERTIES_INDEX].layout = value;
    }
    
    //----------------------------------
