Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-11466

Changing ColorPicker.showTextField at runtime causes focus rect to remain visible even if showTextField is false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • Adobe Flex SDK 3.0 (Release)
    • mx: ColorPicker
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run attached MXML file
      2. Click on the ColorPicker to show the swatches (text field should be visible in ColorPicker pop-up)
      3. Click on the CheckBox to close swatches and deselect CheckBox.
      4. Click on the ColorPicker to show the swatches (text field should now be invisible, yet the blue focus rect remains)

      Actual Results:
      TextField focus rect is visible, even though the text field itself isnt visible.

      Expected Results:
      If ColorPicker.showTextField is false, the focus rect should be hidden also.

      Workaround:
      One possible workaround is to use the ColorPicker control's click event to give focus to something else, such as the main application. The following snippet seems to fix the issue above:
      [code]
      <mx:CheckBox id="sTF" label="showTextField" selected="true" />
      <mx:ColorPicker id="cp3" showTextField="

      {sTF.selected}

      " click="Application.application.setFocus()" />
      [/code]

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: