 	 */
     override protected function measure():void
     {
+        super.measure();
+
         var width:Number = !isNaN(explicitWidth) ? explicitWidth : Infinity;
         var height:Number = !isNaN(explicitHeight) ? explicitHeight : Infinity;
-		compose(width, height);
+        compose(width, height);
 
 		var r:Rectangle = textBlockComposer.actualBounds;
-		measuredWidth = Math.ceil(r.width);
+        measuredWidth = Math.ceil(r.width);
 		measuredHeight = Math.ceil(r.height);
 	}
 		

	private function compose(width:Number = Infinity,
							 height:Number = Infinity):void
	{
		var fontDescription:FontDescription = new FontDescription();
		fontDescription.fontName = fontFamily;
		fontDescription.fontPosture = fontStyle;
		fontDescription.fontWeight = fontWeight;
		
		var elementFormat:ElementFormat = new ElementFormat();
		elementFormat.alpha = textAlpha;
        elementFormat.color = color;
		elementFormat.fontDescription = fontDescription;
		elementFormat.fontSize = fontSize;
		elementFormat.kerning = kerning;
        if (tracking is Number)
        {
            elementFormat.trackingRight = Number(tracking);
        }
        else if (tracking is String) 
        {
            var len:int = String(tracking).length;
            if (tracking.charAt(len - 1) == "%")
            {
                var percent:Number = Number(tracking.substring(0, len - 1));
                elementFormat.trackingRight = percent / 100 * fontSize;
            }
        }

		textBlockComposer.removeTextLines(DisplayObjectContainer(displayObject));
		
		var bounds:Rectangle = textBlockComposer.requestedBounds;
		bounds.x = 0;

import flash.geom.Rectangle;
import flash.text.engine.ElementFormat;
import flash.text.engine.FontDescription;
import flash.text.engine.Kerning;

import flex.graphics.graphicsClasses.TextBlockComposer;
import flex.graphics.graphicsClasses.TextGraphicElement;

[DefaultProperty("text")]

//--------------------------------------
//  Styles
//--------------------------------------

include "../styles/metadata/BasicContainerFormatTextStyles.as"
include "../styles/metadata/BasicParagraphFormatTextStyles.as"
include "../styles/metadata/BasicCharacterFormatTextStyles.as"

/**
 *  Documentation is not currently available.
