[CLOSED] FormPanel anchor and label align issues

  1. #1

    [CLOSED] FormPanel anchor and label align issues

    When the FormPanel Layout property is set to true, the horizontal anchor works as expected, but the LabelAlign doesn't


    <!DOCTYPE html>
    <html>
    <body>
        <ext:ResourceManager runat="server" SeparateUIStyles="false" Theme="Gray" />
    <ext:FormPanel
        runat="server"
        Width="600"
        Height="300"
        Title="Ext.Net"
        Closable="false"
        BodyPadding="5"
        Layout="FormLayout"
        AnchorHorizontal="100%">
        <Items>
            <ext:TextField
                runat="server"
                FieldLabel="Ext.Net" LabelAlign="Top" />
        </Items>
    </ext:FormPanel>
    </body>
    </html>
    But when the Layout property is not set, the LabelAlign works expected, but the horizontal anchor doesn't


    <!DOCTYPE html>
    <html>
    <body>
        <ext:ResourceManager runat="server" SeparateUIStyles="false" Theme="Gray" />
    <ext:FormPanel
        runat="server"
        Width="600"
        Height="300"
        Title="Ext.Net"
        Closable="false"
        BodyPadding="5"
        AnchorHorizontal="100%">
        <Items>
            <ext:TextField
                runat="server"
                FieldLabel="Ext.Net" LabelAlign="Top" />
        </Items>
    </ext:FormPanel>
    </body>
    </html>
    Attached Thumbnails Click image for larger version. 

Name:	exterror001.png 
Views:	36 
Size:	3.5 KB 
ID:	16551   Click image for larger version. 

Name:	exterror001.png 
Views:	10 
Size:	3.5 KB 
ID:	16561   Click image for larger version. 

Name:	exterror002.png 
Views:	38 
Size:	2.5 KB 
ID:	16571  
    Last edited by Daniil; Nov 26, 2014 at 4:48 AM. Reason: [CLOSED]
  2. #2
    Hi Raphael,

    A FormLayout doesn't support LabelAlign.

    Please use an AnchorLayout.

    Also, you should set AnchorHorizontal="100%" for the TextField, not for the FormPanel.

    On the FormPanel itself you can set DefaultAnchor="100%". It affects on all children.
  3. #3
    Thank you Daniil. Please mak this thread as closed.

Similar Threads

  1. [CLOSED] Bug in fieldcontainer when using label align top
    By Akpenob in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 24, 2014, 2:24 PM
  2. Replies: 7
    Last Post: May 31, 2013, 12:52 PM
  3. [CLOSED] ext:Label width/alignment in Anchor
    By mrozik in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 28, 2009, 10:14 AM
  4. Label Align
    By flaviodamaia in forum 1.x Help
    Replies: 1
    Last Post: Jul 29, 2009, 9:37 AM
  5. [CLOSED] Label Right Align
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 16, 2009, 11:30 AM

Posting Permissions