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

Element is added at negative y coordinate if autoLayout="false"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1.Compile and run
      <?xml version="1.0" encoding="utf-8"?>
      <FxApplication height="800" width="800"
      xmlns="http://ns.adobe.com/mxml/2009"
      xmlns:mx="http://ns.adobe.com/mxml/2009"
      ><layout> <VerticalLayout/> </layout>
      <Script>
      <![CDATA[
      import mx.core.*;
      import mx.collections.*;
      import mx.skins.spark.*;
      import mx.graphics.*;
      import mx.components.Group;
      public function addEllipseAt( i:int=0, color:int=1000, width:int=40, height:int=30):void

      { var myGroup:Group = new Group(); var myEllipse:Ellipse = new Ellipse(); myEllipse.width=width; myEllipse.height=height; var myFill:SolidColor = new SolidColor(); myFill.color = color; myEllipse.fill = myFill; myGroup.addElement(myEllipse); dc.dataProvider.addItemAt(myGroup, i); }

      ]]
      >
      </Script>

      <FxDataContainer id="dc" dataProvider="

      {new ArrayCollection([])}

      "
      itemRenderer="

      {new ClassFactory(mx.skins.spark.FxDefaultComplexItemRenderer)}

      "
      >
      <layout> <HorizontalLayout/> </layout>
      </FxDataContainer>
      <FxButton click="addEllipseAt()" label="addEllipse"/>
      <FxButton click="dc.autoLayout=!dc.autoLayout" label="Switch autoLayout"/>

      </FxApplication>

      2.Click "Switch autoLayout" button to set autoLayout=false
      3.Click "addEllipse" to add element to the fxDataContainer

      Actual Results:
      Ellipse is added at negative y

      Expected Results:
      ellipse is added at (0,0)

      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: