0 Replies Latest reply on Jan 12, 2010 6:40 AM by Carol L. Frampton

    [svn:fx-4.0.0] 13442: For TextField and FTETextField, the color of the text seems to be a special case since it is both the property , textColor, and the style, color.

    Carol L. Frampton Level 2

      Revision: 13442

      Revision: 13442

      Author:   cframpto@adobe.com

      Date:     2010-01-12 06:40:20 -0800 (Tue, 12 Jan 2010)

      Log Message:

      ***********

      For TextField and FTETextField, the color of the text seems to be a special case since it is both the property, textColor, and the style, color.  The getTextStyles() method, which is called by validateNow(), will use the textColor property if it has been set, otherwise, the color style. 

       

      We need to override the textColor setter in TextField and FTETextField so that we can set explicitColor and the logic in getTextStyles() will use the explicitly set text color rather than the color style.

       

      The textColor setter and the setColor() method do the same thing.  I'm not sure why there is a setColor() method other than it is in the interface.

       

      QE notes: this bug should be added to mustella

      Doc notes:

      Bugs: SDK-23440

      Reviewer: Gordon

      Tests run: checkintests

      Is noteworthy for integration:

       

      Ticket Links:

      ***********

          http://bugs.adobe.com/jira/browse/SDK-23440

       

      Modified Paths:

      **************

          flex/sdk/branches/4.0.0/frameworks/projects/framework/src/mx/core/UITextField.as

          flex/sdk/branches/4.0.0/frameworks/projects/spark/src/mx/core/UIFTETextField.as