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

BasicLayout:explicit width/height for child Group isn't respected when the group parent is scroller.

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. run 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" >

      <s:Scroller width="300" height="300" direction="rtl" horizontalScrollPolicy="on" verticalScrollPolicy="on">
      <s:viewport >

      <s:Group width="200" height="200">
      <s:layout>
      <s:BasicLayout />
      </s:layout>
      <s:Button label="button1" horizontalCenter="0" y="100"/>
      <s:CheckBox label="checkbox" baseline="10" x="50" verticalCenter="100"/>
      <mx:Label text="label1" horizontalCenter="0" verticalCenter="0"/>
      <s:Rect left="0" right="0" top="0" bottom="0">
      <s:stroke>
      <s:SolidColorStroke color="0x00FF00"/>
      </s:stroke>
      </s:Rect>
      </s:Group>
      </s:viewport>
      </s:Scroller>
      </s:Application>

      2. check the Group's size
      3.

      Actual Results:
      the size for the group is 300x300, not 200x200. However if I exclude the Scroller parent, then the <Group> is bounced correctly.

      Expected Results:
      the explicit set width/height for child should be respected for this case.

      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: