     override protected function measure():void 
     {
         super.measure();
+
+        // Styles can be changed in event handlers while in the middle
+        // of the component lifecycle.  Make sure they are not stale when
+        // composing text.
+        updateStylesIfChanged();
                  
         // ScrollerLayout.measure() has heuristics for figuring out whether to
         // use the actual content size or the preferred size when there are


    /**
     *  @private
     *  This object determines the default text formatting used
     *  by this component, based on its CSS styles.
     *  It is set to null by stylesInitialized() and styleChanged(),
     *  and recreated whenever necessary in commitProperties().
     */
    private var hostFormat:ITextLayoutFormat;

    /**
     *  @private

                return false;
                                       
            // No reflow for explicit lineBreak
            if (_textContainerManager.hostFormat.lineBreak == "explicit")
                return false;

            widthConstraint = width;
