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

Layout properties not being applied the same way during component creation vs being set after component is created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Layout - General
    • None
    • Affected OS(s): All OS Platforms
      Browser: Safari
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a new Flex 4 project, paste the following code into it and run the app:

      <?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="955" minHeight="600">
      <s:Panel x="311" y="83" width="250" height="200" title="Properties applied after app startup">
      <s:layout>
      <s:VerticalLayout id="vertLayout" />
      </s:layout>
      <s:Button x="92" y="38" label="Button"/>
      </s:Panel>
      <s:Panel x="5" y="83" width="250" height="200" title="Properties applied during app startup">
      <s:layout>
      <s:VerticalLayout clipAndEnableScrolling="true" verticalScrollPosition="10" />
      </s:layout>
      <s:Button label="Button"/>
      </s:Panel>
      <s:Button label="Set Clip and VertScroll" click="vertLayout.clipAndEnableScrolling = true; vertLayout.verticalScrollPosition = 10" x="311" y="54"/>
      </s:Application>

      Actual Results:
      Button doesn't move in the panel on the left and does move up in the panel on the right, depending on when the properties are applied.

      Expected Results:
      Both panels should render the button the same way between both panels regardless of when the properties are applied.

      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: