     		invalidateSize();
     		invalidateDisplayList();
     	}
+    }
+
+    /**
+     *  @private
+     */
+    override public function canShareWithNext(element:IGraphicElement):Boolean
+    {
+        // We can share with the next GraphicElement only if it is also
+        // a TextGraphicElement, as TextGraphicElements add child DisplayObjects
+        // instead of drawing the the DisplayObject's graphics.
+        return element is TextGraphicElement && super.canShareWithNext(element);
     }
 
     //--------------------------------------------------------------------------

    /**
     *  @private
     */
    override public function set displayObject(value:DisplayObject):void
    {        
        if (displayObject == value)
            return;


import spark.components.Group;
import spark.layouts.BasicLayout;
import spark.core.IGraphicElement;

/**
 *  The base class for GraphicElements such as TextBox and TextGraphic
