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

BasicLayout:child inside a Group container with verticalCenter,top constrain set not positioned correctly if the the Group's parent <group> has explicite width/height set.

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. copy/paste following code:
      <?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"
      minWidth="1024" minHeight="768">
      <s:Group id="parentGroup" width="400" height="400">
      <mx:Label x="200" y="200" text="parent" verticalCenter="0" top="100" />
      <s:Group >
      <s:layout>
      <s:BasicLayout/>
      </s:layout>
      <mx:Label x="300" y="300" text="child" verticalCenter="0" top="200" />

      </s:Group>
      <s:Rect id="border" left="0" right="0" top="0" bottom="0">
      <s:stroke>
      <s:SolidColorStroke color="0xFF0000"/>
      </s:stroke>
      </s:Rect>
      </s:Group>
      </s:Application>

      2.
      3.

      Actual Results:

      the label "child" is placed around (300, 100), which is incorrect

      Expected Results:
      the child should be at (300, 200) if verticalCenter precedes over top.

      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: