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

Scale grid values on an embedded backgroundImage of a BorderContainer are ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • Spark: BorderContainer
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run this application:

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark">

      <s:layout>
      <s:VerticalLayout />
      </s:layout>

      <s:Image
      width="100%" height="100%"
      source="@Embed(source='Top_Bottom_Bar_Sub.png',scaleGridLeft='150',scaleGridRight='650',scaleGridTop='25',scaleGridBottom='26')"/>

      <s:BorderContainer
      width="100%" height="100%"
      backgroundImage="@Embed(source='Top_Bottom_Bar_Sub.png',scaleGridLeft='150',scaleGridRight='650',scaleGridTop='25',scaleGridBottom='26')"/>

      </s:Application>

      2.
      3.

      Actual Results:

      The image respects the scale grids. The BorderContainer does not.

      Expected Results:

      The BorderContainer should respect the scale grids.

      Workaround (if any):

      From comments below:
      The workaround is to add an Image as the first child of the BorderContainer instead of using backgroundImage when setting scale grid.

      Attachments

        1. Top_Bottom_Bar_Sub.png
          9 kB
          Alex Harui

        Activity

          People

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

            Dates

              Created:
              Updated: