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

RTE if includeIn/excludeFrom are used for all ViewMenu items

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Adobe Flex SDK Previous
    • None
    • Mobile: Menu
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1.Add the following View to your app
      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark" title="Home">
      <s:states>
      <s:State name="portrait"/>
      <s:State name="landscape"/>
      </s:states>
      <s:viewMenuItems>
      <s:ViewMenuItem label="edit" includeIn="landscape"/>
      <s:ViewMenuItem label="test" excludeFrom="landscape"/>
      </s:viewMenuItems>

      <s:Button label="Some Random View" />
      </s:View>
      2.Run the app

      Actual Results:
      TypeError: Error #1034: Type Coercion failed: cannot convert _AS3_.vec::Vector.<spark.components::ViewMenuItem>@48434401 to Array.
      at mx.states::AddItems/addItemsToArray()[E:\dev\hero_private\frameworks\projects\framework\src\mx\states\AddItems.as:798]
      at mx.states::AddItems/apply()[E:\dev\hero_private\frameworks\projects\framework\src\mx\states\AddItems.as:580]
      at mx.core::UIComponent/applyState()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:10598]
      at mx.core::UIComponent/commitCurrentState()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:10355]
      at mx.core::UIComponent/commitProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8187]
      at spark.components.supportClasses::GroupBase/commitProperties()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\GroupBase.as:1089]
      at spark.components::Group/commitProperties()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\Group.as:829]
      at mx.core::UIComponent/validateProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8102]
      at mx.managers::LayoutManager/validateProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:783]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

      Expected Results:
      no RTE

      Workaround (if any):

      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: