[CLOSED] Margins not functional on ImageButton

  1. #1

    [CLOSED] Margins not functional on ImageButton

    I would like to have my image buttons separated, and for other objects I use the Margins. However, in 2.1, the Margins key word appears to be ignored.

    <%@ Page Title="" Language="C#"  %>
    <%@Import Namespace="System.Net"%>
    <%@Import Namespace="System.IO"%>
    <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title />
        <meta http-equiv="Content-Language" content="en-us"/>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    </head>
    <ext:ResourceManager ID="rm1" runat="server" />
    <body>
            <ext:Panel runat="server" Width="185" BodyStyle="background-color: transparent;" CtCls="loginTable" TitleCollapse="true" Border="false" MinButtonWidth="25">
            <Items>
                <ext:ImageButton ID="btnLogin" runat="server" ImageUrl="images\buttons\login.png" OverImageUrl="..\images\buttons\loginOver.png" Margins="5 5 5 5" />
                <ext:ImageButton ID="btnForgot" runat="server" ImageUrl="images\buttons\forgot.png" OverImageUrl="..\images\buttons\forgotOver.png" Margins="5 5 5 5" />
            </Items>
            </ext:Panel>
    </body>
    </html>
    Thanks.
    -Steve
    Last edited by Daniil; Mar 12, 2013 at 4:11 PM. Reason: [CLOSED]
  2. #2
    Hi Steve,

    The Margins property is used by Box layouts (HBox and VBox) and Border one.

    In your case using an HBox one looks appropriate.
  3. #3
    That solves it. Thanks.

    -Steve

Similar Threads

  1. [CLOSED] [#11] Margins inside a FormPanel
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Dec 13, 2012, 8:44 AM
  2. [CLOSED] Layout + Margins
    By jwf in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 20, 2011, 10:33 PM
  3. [CLOSED] Margins and Anchor
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 25, 2011, 6:53 PM
  4. [CLOSED] Uneven Margins in IE and Firefox
    By yobnet in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Jul 08, 2010, 2:32 PM
  5. [CLOSED] Renderer Fn is not functional in NumberColumn
    By skyone in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 23, 2010, 12:54 PM

Posting Permissions