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

selectedIndex on TabNavigator is broken again (regression)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.4 (Release)
    • None
    • mx: Tab Navigator
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a TabNavigator like this:

      <mx:TabNavigator width="400" height="400" selectedIndex="1">
      <mx:Canvas label="One" />
      <mx:Canvas label="Two" creationComplete="trace('created')" />
      </mx:TabNavigator>

      Actual Results: Second Canvas is created and the text 'created' is traced out, but the tab and selected child of TabNavigator are for the first Canvas and selectedIndex is 0.

      Expected Results: selectedIndex should be 1 and the corresponding view and tab should be selected/displayed

      Workaround (if any): Set selectedIndex from a creationComplete listener or some time afterwards. This is a regression of http://bugs.adobe.com/jira/browse/SDK-14157 and exists in 3.4.0.6955 and beyond.

      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: