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

WindowedApplication doesn't update/show menu when it changes during runtime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: FlexNativeMenu
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a new Flex desktop (AIR) application with the following code:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
      <mx:Script>
      <![CDATA[
      private function addMenu():void

      { this.menu = xmlBasedMenu; }

      ]]
      >
      </mx:Script>

      <mx:XML id="xmlMenuData">
      <xmlRoot>
      <menuitem label="MenuItem A" >
      <menuitem label="SubMenuItem A-1" enabled="false"/>
      <menuitem label="SubMenuItem A-2"/>
      </menuitem>
      <menuitem label="MenuItem B">
      <menuitem label="SubMenuItem B-1"/>
      <menuitem label="SubMenuItem B-2"/>
      <menuitem label="SubMenuItem B-3"/>
      </menuitem>
      </xmlRoot>
      </mx:XML>

      <mx:FlexNativeMenu id="xmlBasedMenu"
      showRoot="false"
      labelField="@label"
      dataProvider="

      {xmlMenuData}

      "/>

      <mx:Button label="Click to add menu bar" click="addMenu();"/>
      </mx:WindowedApplication>

      2. Run the application and click the button

      Actual Results: No visible change occurs

      Expected Results: The window menu bar appears in the window (on MS Windows)

      Note that if you resize the window after clicking the button, that causes the menu to appear.

      Workaround (if any): None, other than forcing the WindowedApplication to revalidate, I suppose.

      There are posted attachments which demonstrate having one menu and swapping dataProviders.

      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: