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

		bounds.width = width;
		bounds.height = height;

		textBlockComposer.lineHeight = lineHeight;
		textBlockComposer.paddingLeft = paddingLeft;
		textBlockComposer.paddingTop = paddingTop;
		textBlockComposer.paddingRight = paddingRight;
		textBlockComposer.paddingBottom = paddingBottom;
		textBlockComposer.textAlign = textAlign;
		textBlockComposer.verticalAlign = verticalAlign;

		textBlockComposer.composeText(text, elementFormat);
				
		textBlockComposer.addTextLines(DisplayObjectContainer(displayObject));
	}
}

}


	//--------------------------------------------------------------------------
	//
	//  Class methods
	//
	//--------------------------------------------------------------------------
    
    /**
     *  @private
     */
    private static function getNumberOrPercentOf(value:Object,
                                                 n:Number):Number
    {
        // If 'value' is a Number like 10.5, return it.
        if (value is Number)
            return Number(value);

        // If 'value' is a percentage String like "10.5%",
        // return that percentage of 'n'.
        if (value is String)
        {
            var len:int = String(value).length;
            if (len >= 1 && value.charAt(len - 1) == "%")
            {
                var percent:Number = Number(value.substring(0, len - 1));
                return percent / 100 * n;
            }
        }

        // Otherwise, return NaN.
        return NaN;
    }

	//--------------------------------------------------------------------------
	//
	//  Constructor
	//
	//--------------------------------------------------------------------------
