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

Children in SkinnableContainer do not shrink to fit when verticalAlign is justify

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile & run:
      <?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:SkinnableContainer id="cont">
      <s:layout>
      <s:HorizontalLayout verticalAlign="justify" />
      </s:layout>
      <s:Rect id="r" width="250" height="250">
      <s:fill>
      <s:SolidColor color="0x00CC00"/>
      </s:fill>
      </s:Rect>
      </s:SkinnableContainer>

      <s:Group y="300">
      <s:layout>
      <s:VerticalLayout/>
      </s:layout>
      <s:Button click="cont.height=200;cont.width=200;" label="Size container smaller" />
      <s:SimpleText text="Container contentHeight:

      {cont.contentHeight}

      " />
      <s:SimpleText text="Container height:

      {cont.height}

      " />
      <s:SimpleText text="Container minHeight:

      {cont.minHeight}

      " />
      <s:SimpleText text="r height:

      {r.height}

      "/>
      <s:Button click="cont.height=500;cont.width=500;" label="Size container bigger" />
      </s:Group>
      </s:Application>

      2. Click "Size container smaller" button

      Actual Results:
      SkinnableContainer now returns a height of 200, but the Rect's height is still 250.

      Expected Results:
      Rect should now have a height of 200.

      Workaround (if any):

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment