Set rowHeight property to a pixel value large enough for all the children : Group « Container « Flex






Set rowHeight property to a pixel value large enough for all the children

Set rowHeight property to a pixel value large enough for all the children
           

<!--
Code from Flex 4 Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1) proper attribution to Adobe is given as the owner of the user guide; and 
  (2) any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->


<!-- containers\spark\SparkGroupContainerVarRowHeightFalseRowHeight.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <s:Group>
        <s:layout>
            <s:VerticalLayout variableRowHeight="false" rowHeight="40" />
        </s:layout>
        <s:Button label="Button 1" />
        <s:Button label="Button 2" />
        <s:Button label="Button 3" fontSize="36" />
        <s:Button label="Button 4" fontSize="24" />
    </s:Group>
</s:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Using multiple containers for more complex layouts
2.Using an HGroup inside of a panel to add a margin from edge
3.Use HGroup to layout Label, CheckBoxesUse HGroup to layout Label, CheckBoxes
4.Contain an HGroup (horizontal group) containerContain an HGroup (horizontal group) container
5.Spark HGroup ContainerSpark HGroup Container
6.Three images in an HGroup container.Three images in an HGroup container.
7.Creates a Button control inside the HGroup containerCreates a Button control inside the HGroup container
8.Spark Group Container Row HeightSpark Group Container Row Height
9.Use VGroup containerUse VGroup container
10.Force the VGroup containers to be included in the test script's hierarchyForce the VGroup containers to be included in the test script's hierarchy
11.Color property for a VGroup control is blue.Color property for a VGroup control is blue.
12.Group element add eventGroup element add event
13.Use a Spark Group container with three child controls, where the Group container lays out its children verticallyUse a Spark Group container with three child controls, where the Group container lays out its children vertically
14.Show a Spark Group container that contains a child Image controlShow a Spark Group container that contains a child Image control
15.Add scroll bars to the Spark Group container by wrapping the container in the Scroller componentAdd scroll bars to the Spark Group container by wrapping the container in the Scroller component
16.Make Group container the child of the Scroller componentMake Group container the child of the Scroller component
17.Add element to Group with ActionScriptAdd element to Group with ActionScript
18.Set default vertical alignment of top for HorizontalLayout to align the children of a Group container to container bottomSet default vertical alignment of top for HorizontalLayout to align the children of a Group container to container bottom
19.Group container myGroup is the viewport for this scrollerGroup container myGroup is the viewport for this scroller
20.Controlling layout using view states groupsControlling layout using view states groups
21.Create a Group container with an Button controlCreate a Group container with an Button control
22.A Group container with four Button controls as its children:A Group container with four Button controls as its children:
23.containers Viewport Setcontainers Viewport Set
24.Grouping Graphic objects togetherGrouping Graphic objects together
25.Group ButtonsGroup Buttons