<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (c) 2007 FlexLib Contributors.  See:
     http://code.google.com/p/flexlib/wiki/ProjectContributors

     Permission is hereby granted, free of charge, to any person obtaining a copy of
     this software and associated documentation files (the "Software"), to deal in
     the Software without restriction, including without limitation the rights to
     use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
     of the Software, and to permit persons to whom the Software is furnished to do
     so, subject to the following conditions:

     The above copyright notice and this permission notice shall be included in all
     copies or substantial portions of the Software.

     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
     SOFTWARE.
-->
<s:Application xmlns:flexlib="http://code.google.com/p/flexlib/"
               xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark">
    <s:layout>
        <s:VerticalLayout paddingBottom="8"
                          paddingLeft="8"
                          paddingRight="8"
                          paddingTop="8"/>
    </s:layout>
    <s:Label text="hAlign = left, vAlign = top"/>
    <flexlib:FlowBox borderStyle="solid"
                     width="250"
                     backgroundColor="#FFFFFF"
                     horizontalGap="5"
                     verticalGap="5">

        <s:Button label="Button"/>
        <s:TextInput/>
        <s:Label text="Label"/>
        <s:Button label="Another Button"/>
        <s:Button label="Button With a Longer Label"/>
        <s:Label text="Some Label"/>
        <s:BorderContainer backgroundColor="#FF0000"
                           height="50"
                           width="10"/>
        <s:Label text="Some Other Label"/>
        <s:Label text="Hello" color="#FF0000"/>

    </flexlib:FlowBox>

    <s:Label text="hAlign = center, vAlign = middle"/>
    <flexlib:FlowBox borderStyle="solid"
                     width="250"
                     horizontalAlign="center"
                     verticalAlign="middle"
                     backgroundColor="#FFFFFF"
                     horizontalGap="5"
                     verticalGap="5">

        <s:Button label="Button"/>
        <s:TextInput/>
        <s:Label text="Label"/>
        <s:Button label="Another Button"/>
        <s:Button label="Button With a Longer Label"/>
        <s:Label text="Some Label"/>
        <s:BorderContainer backgroundColor="#FF0000"
                           height="50"
                           width="10"/>
        <s:Label text="Some Other Label"/>
        <s:Label text="Hello" color="#FF0000"/>

    </flexlib:FlowBox>

    <s:Label text="hAlign = right, vAlign = bottom"/>
    <flexlib:FlowBox borderStyle="solid"
                     width="250"
                     horizontalAlign="right"
                     verticalAlign="bottom"
                     backgroundColor="#FFFFFF"
                     horizontalGap="5"
                     verticalGap="5">

        <s:Button label="Button"/>
        <s:TextInput/>
        <s:Label text="Label"/>
        <s:Button label="Another Button"/>
        <s:Button label="Button With a Longer Label"/>
        <s:Label text="Some Label"/>
        <s:BorderContainer backgroundColor="#FF0000"
                           height="50"
                           width="10"/>
        <s:Label text="Some Other Label"/>
        <s:Label text="Hello" color="#FF0000"/>

    </flexlib:FlowBox>


    <s:Label text="hGap = 0, vGap = 0"/>
    <flexlib:FlowBox borderStyle="solid"
                     width="250"
                     backgroundColor="#FFFFFF"
                     horizontalGap="0"
                     verticalGap="0">

        <s:Button label="Button"/>
        <s:TextInput/>
        <s:Label text="Label"/>
        <s:Button label="Another Button"/>
        <s:Button label="Button With a Longer Label"/>
        <s:Label text="Some Label"/>
        <s:BorderContainer backgroundColor="#FF0000"
                           height="50"
                           width="10"/>
        <s:Label text="Some Other Label"/>
        <s:Label text="Hello" color="#FF0000"/>

    </flexlib:FlowBox>

</s:Application>
