[CLOSED] TextArea in Container doesn't line up to fields above

  1. #1

    [CLOSED] TextArea in Container doesn't line up to fields above

    Hello,

    In the last post

    http://forums.ext.net/showthread.php...6476-16-1.aspx

    You helped me fix the Label on Top issue using a container. Now I can get that TextArea to lign up to the fields above it. See code below.

    <ext:FormPanel ID="FormPanel2" runat="server" ButtonAlign="Right" Padding="5" Title="Title" Header="False" Frame="true" LabelWidth="5">
    
        <Items>
            <ext:MultiField ID="MultiField1" runat="server">
                <Fields>
                    <ext:TextField ID="txtCustomerWebSite" runat="server" Width="324" FieldLabel="Web Site" LabelAlign="Top">
                    </ext:TextField>
                    <ext:TextField ID="txtCustomerFuture" runat="server" Width="174" FieldLabel="Future" LabelAlign="Top">
                    </ext:TextField>
                </Fields>
            </ext:MultiField>
            <ext:Container ID="Container1" runat="server" LabelAlign="Top" Layout="form" Padding="10">
                <Items>
                    <ext:TextArea ID="TextArea1" runat="server" Width="500" Height="118" FieldLabel="Notes" LabelAlign="Top"/>
                </Items>
            </ext:Container>
        </Items>
    </ext:FormPanel>
  2. #2

    RE: [CLOSED] TextArea in Container doesn't line up to fields above

    The .HideLabel property should help. And remove .LabelWidth="5".

    This is how I would configure your sample.

    Example

    <ext:FormPanel runat="server" Title="Form Panel" Padding="5" LabelAlign="Top">
        <Items>
            <ext:MultiField runat="server" HideLabel="true">
                <Fields>
                    <ext:TextField 
                        runat="server" 
                        Width="324" 
                        FieldLabel="Web Site" 
                        LabelAlign="Top" 
                        />
                    <ext:TextField 
                        runat="server" 
                        Width="174" 
                        FieldLabel="Future" 
                        LabelAlign="Top" 
                        />
                </Fields>
            </ext:MultiField>
            <ext:Container runat="server">
                <Items>
                    <ext:TextArea 
                        runat="server" 
                        Width="500" 
                        Height="118" 
                        FieldLabel="Notes" 
                        />
                </Items>
            </ext:Container>
        </Items>
    </ext:FormPanel>
    Hope this helps.

    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 2
    Last Post: Dec 29, 2011, 8:07 PM
  2. [CLOSED] textarea with line numbers
    By bogc in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 27, 2011, 11:37 AM
  3. [CLOSED] Multiple Tab Strips in line, with Container
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 31, 2011, 9:03 AM
  4. [CLOSED] Formpanel with 2 fields on the same line
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Oct 25, 2010, 9:10 PM
  5. [CLOSED] TextArea LabelAlign doesn't work
    By sdevanney in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 29, 2010, 12:06 PM

Posting Permissions