Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Firefox 3.x
Language Found: English
Description
Steps to reproduce:
1. Inside of a Scroller, create a BorderContainer with a percentage width of 100% and a minWidth value set. Make the Scroller and Viewport have percentage width of 100% also. (See sample below)
2. Launch the application in a browser and adjust the size of the application so that the width is smaller than the minWidth setting for the BorderContainer. The BorderContainer will still fill 100% of its parent instead of stopping at the minWidth value.
(Note that if you take out the Scroller from this sample, then the same issue does not appear).
<?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/mx">
<s:Scroller width="100%" height="100%">
<s:VGroup width="100%" height="100%" paddingTop="20" paddingBottom="20" paddingLeft="20" paddingRight="20">
<s:BorderContainer width="100%" height="100%" minWidth="450" minHeight="300"/>
</s:VGroup>
</s:Scroller>
</s:Application>
Actual Results:
The BorderContainer's width was always 100% of its parent even when that width is below its minWidth setting.
Expected Results:
I expected the BorderContainer width to never go below its minWidth value.
Workaround (if any):
None