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

Spark layouts inconsistently round when centering elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 4.0 (Release)
    • None
    • Spark: Layout
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run:

      <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/mx">

      <s:VGroup verticalAlign="middle" horizontalAlign="center" width="501" height="501">
      <s:Button label="1" alpha="1.00" />
      <s:Button label="1" alpha="0.00" />
      <s:Button label="1" alpha="0.00" />
      <s:Button label="1" alpha="1.00" />
      </s:VGroup>

      <mx:VBox verticalAlign="middle" horizontalAlign="center" width="501" height="501">
      <s:Button label="1" alpha="0.00" />
      <s:Button label="1" alpha="1.00" />
      <s:Button label="1" alpha="1.00" />
      <s:Button label="1" alpha="0.00" />
      </mx:VBox>

      </s:Application>

      Actual Results:

      The buttons in the halo VBox don't horizontally line up with the buttons in the VGroup.

      VerticalLayout/HorizontalLayout - minor axis alignment - rounds up (differs from halo)
      VerticalLayout/HorizontalLayout - major axis alignment - rounds down (same as halo)

      Expected Results:

      The buttons should all be horizontally aligned equally.

      VerticalLayout/HorizontalLayout - minor axis alignment - rounds down (same as halo)
      VerticalLayout/HorizontalLayout - major axis alignment - rounds down (same as halo)

      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: