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

Setting paddingTop to negative number renders differently if Panel is wrapped in a Scroller

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • Adobe Flex SDK Previous
    • None
    • Spark: VerticalLayout
    • 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:layout>
      <s:VerticalLayout/>
      </s:layout>

      <s:Panel width="150" height="150" >
      <s:layout>
      <s:VerticalLayout paddingTop="-20"/>
      </s:layout>
      <s:Rect width="100" height="100">
      <s:fill>
      <s:SolidColor color="0xCCCC00"/>
      </s:fill>
      </s:Rect>
      </s:Panel>

      <s:Scroller>
      <s:Panel width="150" height="150">
      <s:layout>
      <s:VerticalLayout paddingTop="-20"/>
      </s:layout>
      <s:Rect width="100" height="100">
      <s:fill>
      <s:SolidColor color="0xCCCC00"/>
      </s:fill>
      </s:Rect>
      </s:Panel>
      </s:Scroller>
      </s:Application>

      Actual Results:
      Notice in the top one the Rect is on top of the Panel header and on the bottom, the Rect is below the Panel header

      Expected Results:
      Should be consistent especially since the Scroller does not appear in 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: