      *  UIComponent.measureText() because we are adding a few additional styles 
      *  to it based on headerStyleName and messageStyleName.
      */
-    private function measureHeaderText(text:String):TextLineMetrics
+    private function measureMessageText(text:String):TextLineMetrics
     {
         // Copied from UIComponent.measureText()
-        cachedHeaderFormat = determineTextFormatWithGetStyleFunction(headerGetStyleFunction, cachedHeaderFormat);
-        return cachedHeaderFormat.measureText(text);
-    }
-    
-    /**
-     *  @private 
-     *  Function to help figure out the sizes of the header and message.  We cannot use 
-     *  UIComponent.measureText() because we are adding a few additional styles 
-     *  to it based on headerStyleName and messageStyleName.
-     */
-    private function measureSubTextText(text:String):TextLineMetrics
-    {
-        // Copied from UIComponent.measureText()
-        cachedSubTextFormat = determineTextFormatWithGetStyleFunction(messageGetStyleFunction, cachedSubTextFormat);
-        return cachedSubTextFormat.measureText(text);
+        cachedMessageTextFormat = determineTextFormatWithGetStyleFunction(messageGetStyleFunction, cachedMessageTextFormat);
+        return cachedMessageTextFormat.measureText(text);
     }
     
     /**

            
            // handle labelDisplay.  it can only be 1 line
            
            headerWidth = Math.max(Math.min(labelComponentsViewWidth, headerTextWidth), 0);
            headerHeight = Math.max(Math.min(viewHeight, headerTextHeight), 0);
            
            labelDisplay.width = headerWidth;
            labelDisplay.height = headerHeight;
            
            labelDisplay.x = Math.round(labelComponentsX);
            labelDisplay.y = Math.round(paddingTop);
            
            // reset text if it was truncated before.  then attempt to truncate it
            if (labelDisplay.isTruncated)
                labelDisplay.text = headerText;
            labelDisplay.truncateToFit();
        }
        

        }
        
        // now size and position the elements, 3 different configurations we care about:
        // 1) label and message
        // 2) label only
        // 3) message only
        
        // label display goes on top
        // message display goes below
        
        var labelWidth:Number = 0;
        var labelHeight:Number = 0;
        var messageWidth:Number = 0;
        var messageHeight:Number = 0;
        var verticalGap:Number = 0;
