[CLOSED] TextArea LabelAlign doesn't work

  1. #1

    [CLOSED] TextArea LabelAlign doesn't work

    Hello,

    When I try to use the LabelAlign="Top" on the TextArea Control. It stays at the Left. As a test I tried the same task with Note and it works fine.

    Also if I set the FormLayout with the LabelAlign="Top" the TextArea FieldLabel moves to the top, but the rest of the form gets messed up.

    Ext.Net Version: 10.0.30519 - SVN Revision: 2390

    Here is the example code.

    <ext:FormLayout ID="FormLayout1" runat="server">
        <Anchors>
            <ext:Anchor>
                <ext:TextArea ID="TextArea1" runat="server" Width="300" Height="250" FieldLabel="Notes" LabelAlign="Top">
                </ext:TextArea>
            </ext:Anchor>
        </Anchors>
    </ext:FormLayout>
    Thanks

  2. #2

    RE: [CLOSED] TextArea LabelAlign doesn't work

    Hi,

    Please post full test example


    Please note that if field is placed inside FormLayout then do not use LabelAlign property for individual field. FormLayout cannot use different LabelAlign and use LabelAlign from container only (for example, from FormPanel)
  3. #3

    RE: [CLOSED] TextArea LabelAlign doesn't work

    Hi sdevanney,

    The following sample demonstrates adding an extra <ext:Container> with a different LabelAlign property.

    Example

    <ext:Panel 
        Title="Contact" 
        runat="server" 
        Layout="form" 
        Padding="5"
        Height="250" 
        Width="350">
        <Items>
            <ext:TextField 
                runat="server" 
                FieldLabel="Subject" 
                AnchorHorizontal="100%" 
                />
            <ext:Container 
                runat="server" 
                LabelAlign="Top" 
                Layout="form">
                <Items>
                    <ext:TextArea 
                        runat="server" 
                        Width="300" 
                        Height="150" 
                        FieldLabel="Message" 
                        LabelAlign="Top"
                        AnchorHorizontal="100%"
                        />
                </Items>
            </ext:Container>
        </Items>
    </ext:Panel>
    Hope this helps.

    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 10
    Last Post: Aug 27, 2012, 4:55 PM
  2. [CLOSED] FileUploadField doesn't work as should
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 23
    Last Post: Jul 16, 2012, 4:40 PM
  3. [1.0RC]MultiHeader doesn't work.
    By firebank in forum 1.x Help
    Replies: 1
    Last Post: Nov 11, 2010, 4:06 PM
  4. tabpanel doesn't work in IE8
    By maryam in forum 1.x Help
    Replies: 3
    Last Post: Aug 18, 2010, 5:49 AM
  5. [CLOSED] TextArea in Container doesn't line up to fields above
    By sdevanney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 30, 2010, 5:45 PM

Posting Permissions