Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Create a Group instance (with width property explicitly set) that has TileLayout with horizontalGap="0", columnAlign="justifyUsingWidth", orientation="rows".
2. Add N visual elements (to the Group) which initial width is less than Group.width/(N+1) (e.g. Group.width=400, N=4, element.minWidth=50)
<s:Group width="400">
<s:layout>
<s:Layout horizontalGap="0" columnAlign="justifyUsingWidth" orientation="rows"/>
</s:layout>
<s:Button minWidth="50"/>
<s:Button minWidth="50"/>
<s:Button minWidth="50"/>
<s:Button minWidth="50"/>
</s:Group>
Actual Results:
The child elements are layout-ed within the Group in a single row, but its width is set wrongly so they do not cover the complete width of the Group. It seems as if TileLayout calculated column count incorrectly (one more than it is expected).
Expected Results:
According to asdoc in case columnAlign is set to "justifyUsingWidth", the child elements' widht (columnWidth) should be set so the container (the Group) is completely occupied by the child elements.
Workaround (if any):