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

        // position of the lines has remained the same.
        if (compose)
            composeTextLines(unscaledWidth, unscaledHeight);
        else if (shareIndex != -1)
            mx_internal::adjustTextLines();
            
        // If the text is overset it always has to be clipped (as well as if 

            invalidateProperties();
        }
             
        super.setDisplayObject(value);
    }    
  
    //--------------------------------------------------------------------------
