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

Using the navigators property on TabbedViewNavigator causes the wrong navigator to be visible at launch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Mobile: ViewNavigator
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a TabbedViewNavigator and set its children using the <s:navigators> tag

      <s:TabbedViewNavigator width="100%" height="100%" id="tabNav" >

      <s:navigators>

      <s:ViewNavigator width="100%" height="100%" label="What's On" firstView="views.View1" />
      <s:ViewNavigator width="100%" height="100%" label="Venue Info" firstView="views.View2" />
      <s:ViewNavigator width="100%" height="100%" label="Contact" firstView="views.View3"/>

      </s:navigators>

      </s:TabbedViewNavigator>

      Actual Results:
      View 3 is visible at launch even though the navigator thinks the selectedIndex is 0. Click between the first two tabs doesn't seem to remove the view either. You need to click on the third tab then the other two.

      Expected Results:
      View 1 should be visible

      Workaround (if any):
      Don't use the navigators tag and instead define children like so:

      <s:TabbedViewNavigator width="100%" height="100%" id="tabNav" >

      <s:ViewNavigator width="100%" height="100%" label="What's On" firstView="views.View1" />
      <s:ViewNavigator width="100%" height="100%" label="Venue Info" firstView="views.View2" />
      <s:ViewNavigator width="100%" height="100%" label="Contact" firstView="views.View3"/>

      </s:TabbedViewNavigator>

      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: