Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Later
-
Adobe Flex SDK 3.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Create a new application, and paste this code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
xmlns:local="*"
>
<mx:Style>
Panel
</mx:Style>
<mx:Panel
layout="vertical"
width="400"
height="300"
title="Works right"
>
<mx:Box
width="50"
height="50"
backgroundColor="green"
/>
</mx:Panel>
<mx:Panel
layout="absolute"
width="400"
height="300"
title="Works wrong"
>
<mx:Box
width="50"
height="50"
backgroundColor="red"
/>
</mx:Panel>
</mx:Application>
Actual Results:
Content overlaps with header for the panel whose layout=absolute.
Expected Results:
Content should be inside panel, either as defined by the scaleGrid, or as defined by the padding-* style tags.
Workaround (if any):
No workaround fully solves the problem, but I can put a canvas inside of the panel and then use the canvas left,right,top,bottom properties to define the panel boundries. This is not a practical solution because the canvas has to be added every single time I extend a panel, or I have to write my own component to completely replace Panel.