     override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
     {
         super.updateDisplayList(unscaledWidth, unscaledHeight);
-        
-        var textHeight:Number = 0;
-        var lineMetrics:TextLineMetrics;
-        
-        if (title != "")
-            lineMetrics = measureText(title);
-        else
-            lineMetrics = measureText("Wj");
-        
-        textHeight = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;
         
         titleDisplay.commitStyles();
         titleDisplay.width = unscaledWidth;

            titleDisplay.visible = false;
            titleGroup.visible = false;
        }
        else if (titleGroup.getMXMLContent() != null && titleGroup.includeInLayout)
        {
            titleGroup.setLayoutBoundsSize(titleCompWidth, unscaledHeight);
            titleGroup.setLayoutBoundsPosition(titleCompX, 1);
            
            titleDisplay.visible = false;
            titleGroup.visible = true;
        }
        else
        {
            // FIXME (jasonsj): pending mobile styling spec
            // paddingLeft
            titleCompX = titleCompX + TITLE_PADDING;
            
            // FIXME (jasonsj): pending mobile styling spec
            // paddingRight
            titleCompWidth -= TITLE_PADDING * 2;
            
            if (hostComponent.getStyle("titleAlign") == "center")
            {
                // horizontalAlign=center
                titleCompWidth = titleDisplay.getExplicitOrMeasuredWidth();
                titleCompX = Math.floor((unscaledWidth / 2) - (titleCompWidth / 2));
            }
                
            // hide titleDisplay if there is any overlap after padding
            if ((titleCompX < navigationGroupWidth)
                || ((titleCompX + titleCompWidth) > actionGroupX))
            {
                titleDisplay.visible = false;
                titleGroup.visible = false;
            }
            else
            {
                // verticalAlign=center
                var titleHeight:Number = titleDisplay.getExplicitOrMeasuredHeight();
                var titleCompY:Number = Math.floor((unscaledHeight / 2) - (titleHeight / 2));
                
                titleDisplay.setLayoutBoundsSize(titleCompWidth, titleHeight);
                titleDisplay.setLayoutBoundsPosition(titleCompX, titleCompY + 1); // +1 FXG border
                
                titleDisplay.visible = true;
                titleGroup.visible = false;
            }
        }
        
        // Draw the gradient background

        
        textHeight = lineMetrics.height + UITextField.TEXT_HEIGHT_PADDING;
        
        descent = lineMetrics.descent;
        
        measuredWidth = textWidth;
        measuredHeight = textHeight;
    }
