[CLOSED] How to reduce the padding for buttons at panel bottom?

  1. #1

    [CLOSED] How to reduce the padding for buttons at panel bottom?

    Hi,

    I have added button to the panel and aligned center. I want to reduce the default padding above and below of the button as showing in the screenshot. Can you please let me know how can it be possible?

    
    <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout" StyleSpec="bg">
            <Items>
                <ext:Panel ID="pnlProfile" runat="server" Region="Center" Layout="BorderLayout" Border="false"
                    ButtonAlign="Center">
                    <Items>
                        <ext:Panel ID="Panel1" runat="server" Region="Center" Layout="BorderLayout" Border="true"
                            BodyStyle="background-color:#ffffff" Padding="5">
                            <Items>
                                <ext:Panel ID="pnlAdminMsg" runat="server" Region="Center" Margins="5,5,5,5" Layout="BorderLayout"
                                    Border="false">
                                    <Items>
                                        <ext:TextArea ID="txtMessage" runat="server" Region="Center" AutoScroll="true">
                                        </ext:TextArea>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="pnlAdminGrdMsgs" runat="server" Region="South" Collapsible="true"
                                    Collapsed="true" MaxHeight="100" Height="100" Layout="BorderLayout" Border="false">
                                    <Items>                                    
                                    </Items>
                                </ext:Panel>
                            </Items>
                        </ext:Panel>
                    </Items>
                    <Buttons>
                        <ext:Button ID="btnAddNotice" runat="server" Text="Add Notice" Icon="Add">
                        </ext:Button>
                    </Buttons>
                </ext:Panel>
            </Items>
        </ext:Viewport>
    Click image for larger version. 

Name:	Space.PNG 
Views:	133 
Size:	15.4 KB 
ID:	3148
  2. #2
    If you want to reduce padding for all buttons bars then add the following css rule to the page
    .x-panel-btns {
    	        overflow:hidden;
    	        padding:0px;
            }
    If for particular panel only then add Cls="x-small-buttons" for the panel and use the following rule
    .x-small-buttons .x-panel-btns {
    	        overflow:hidden;
    	        padding:0px;
            }
  3. #3

    How to reduce the padding for buttons at panel bottom?

    Hi Vladimir,

    Thank you. I have implemented and it is working.


    Quote Originally Posted by Vladimir View Post
    If you want to reduce padding for all buttons bars then add the following css rule to the page
    .x-panel-btns {
    	        overflow:hidden;
    	        padding:0px;
            }
    If for particular panel only then add Cls="x-small-buttons" for the panel and use the following rule
    .x-small-buttons .x-panel-btns {
    	        overflow:hidden;
    	        padding:0px;
            }

Similar Threads

  1. [CLOSED] How to set the Toolbar buttons alignment to bottom
    By ISI in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 02, 2011, 1:02 PM
  2. Gridpanel - Reduce Row Padding?
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Dec 21, 2010, 9:57 AM
  3. Replies: 0
    Last Post: Jun 17, 2009, 6:36 PM
  4. Replies: 1
    Last Post: May 10, 2009, 2:15 PM
  5. [CLOSED] How to adjust padding around panel inside portlet?
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 10, 2009, 3:30 PM

Tags for this Thread

Posting Permissions