[CLOSED] [2.2] Ext.Menu leaving a blank space to the left

  1. #1

    [CLOSED] [2.2] Ext.Menu leaving a blank space to the left

    Hello, I'm trying to use an Ext.Menu for a filter menu panel, however, the menu is leaving a blank space to the left (probably for the icons, which I don't want to use) and i don't k
    now how to make it not leave that blank space.

    Here's a picture of what I am getting.
    Click image for larger version. 

Name:	Ext22RemoveIconFromMenu.jpg 
Views:	103 
Size:	59.5 KB 
ID:	6376

    I would like to remove the space to the left of the field labels in menu.

    This is my code:
    <ext:ResourceManager runat="server" ID="RM" />
    <ext:Button Text="Test button" runat="server" ID="btnTest">
        <Menu>
            <ext:Menu runat="server" ID="mnuTest" BodyPadding="10">
                <Items>
                    <ext:TextField runat="server" ID="txtTest1" FieldLabel="Filter1" />
                    <ext:ComboBox runat="server" ID="cmbTest2" FieldLabel="Filter2">
                        <Items>
                            <ext:ListItem Text="Test1" Value="Test1" />
                            <ext:ListItem Text="Test2" Value="Test2" />
                        </Items>
                    </ext:ComboBox>
                </Items>
            </ext:Menu>
        </Menu>
    </ext:Button>
    Last edited by Daniil; Jun 14, 2013 at 1:39 PM. Reason: [CLOSED]
  2. #2
    Quote Originally Posted by FVNoel View Post

    I would like to remove the space to the left of the field labels in menu.
    Hi FVNoel

    The reason it does this, is because you have not set the plain variable on the menu to true
    Set Plain = true, if you dont want to show the area where the icons are shown

    Ex. Server side vise

    
    Menu myMenu = new Menu()
    {
    ID = myMenuTest,
    Plan = true
    };
    Html vise

    <ext:Menu runat="server" ID="myMenu" Plain ="true">
    </ext:Menu>
    Last edited by Akpenob; Jun 14, 2013 at 11:21 AM.
  3. #3
    Cool, it works. Thanks!
  4. #4
    Hi @FVNoel,

    Yes, the Plain setting is made specially for your case.
    http://docs.sencha.com/extjs/4.2.1/#...Menu-cfg-plain

    @Akpenob, thank you for your contribution! Much appreciated.

Similar Threads

  1. Blank space in checkbox selection model
    By yash.kapoor in forum 2.x Help
    Replies: 3
    Last Post: Jan 07, 2013, 4:31 AM
  2. [CLOSED] blank space as thousand separator
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 19, 2011, 7:04 PM
  3. [CLOSED] Blank space at the end of gridpanel
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 15, 2011, 6:17 PM
  4. [CLOSED] Removing Icon Space in Menu
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 23, 2010, 5:23 PM
  5. Replies: 2
    Last Post: May 19, 2010, 4:07 PM

Posting Permissions