Details
-
Bug
-
Status: Reopened
-
Minor
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
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.