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

Spark BasicLayout should throw error/RTE when setting useVirtualLayout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: BasicLayout
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Found in trunk 4.0.0.8520.

      Steps to reproduce:
      1. Compile and run this:

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/halo">

      <s:layout>
      <s:BasicLayout useVirtualLayout="true" />
      </s:layout>

      </s:Application>

      Actual Results:
      No errors. You only see a trace statement in your Debug panel if you happened to debug the app instead of just run it.

      BasicLayout.as class has this (line 170+/-):
      /**

      • The BasicLayout class does not support virtualization.
      • Setting this property to <code>true</code> generates a warning.
        *
      • @langversion 3.0
      • @playerversion Flash 10
      • @playerversion AIR 1.5
      • @productversion Flex 4
        */
        override public function set useVirtualLayout(value:Boolean):void { if (value) trace("Warning: BasicLayout doesn't support virtualization"); }

      Expected Results:
      Kaboom. It should RTE with some ArgumentError or whatever.
      It doesnt "generate a warning" like the comments imply, it basically just traces that your useVirtualLayout set was illegal.

      Workaround (if any):
      n/a

      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: