PagingToolbar spacing for Right menu item

  1. #1

    PagingToolbar spacing for Right menu item

    In v1.2 the spacing between the PagingToolbar DisplayMsg and the right menu item was spaced properly, but in v2.0 there is extra space.

                            <BottomBar>
                                <ext:PagingToolbar ID="ActiveUserPaging" runat="server" DisplayInfo="true" DisplayMsg="Displaying active users {0} - {1} of {2}"
                                    EmptyMsg="No active users to display">
                                    <Items>
                                    <ext:ToolbarFill />
                                        <ext:Button runat="server" Icon="Help" ToolTip="Help" />
                                    </Items>
                                </ext:PagingToolbar>
                            </BottomBar>
    w/ DisplayInfo="false", position properly.
    Click image for larger version. 

Name:	BottomBar V1.2.png 
Views:	98 
Size:	3.4 KB 
ID:	3965

    w/ DisplayInfo="true", to much spacing
    Click image for larger version. 

Name:	BottomBar V2.0B.png 
Views:	124 
Size:	4.3 KB 
ID:	3966

    * Built against revision 3893
    Last edited by cwolcott; Mar 20, 2012 at 5:14 AM. Reason: Revision
  2. #2
    Hi,

    There is
    if (me.displayInfo) {
        me.items.push('->');
        me.items.push({xtype: 'tbtext', itemId: 'displayItem'});
    }
    within the initComponent method of the PagingToolbar class.

    '->' means a ToolbarFill component.

    So, the button is between two ToolbarFill components and it's center aligned.

    I can suggest the following solution - remove the ToolbarFill between the button and info field.

    Example
    <ext:PagingToolbar 
        runat="server" 
        DisplayInfo="true" 
        DisplayMsg="Displaying active users {0} - {1} of {2}"
        EmptyMsg="No active users to display">
        <Items>
            <ext:ToolbarFill />
            <ext:Button runat="server" Icon="Help" ToolTip="Help" />
        </Items>
        <Listeners>
            <BeforeRender Handler="this.items.removeAt(this.items.length - 2);" />
        </Listeners>
    </ext:PagingToolbar>

Similar Threads

  1. Replies: 8
    Last Post: Jul 29, 2012, 10:58 AM
  2. Replies: 2
    Last Post: Apr 02, 2012, 7:48 AM
  3. [CLOSED] Always selected Item is nothing for combobox as menu item
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 04, 2011, 4:51 PM
  4. [CLOSED] Spacing and size - buttons in pagingtoolbar
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 03, 2011, 6:57 AM
  5. [CLOSED] Menu inside Component menu item
    By tansu in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 15, 2010, 2:32 PM

Posting Permissions