How to center buttons display in the toolbar ?

  1. #1

    How to center buttons display in the toolbar ?

    Hello,
    I implemented a button within a toolbar, how to center buttons display in the toolbar ?
  2. #2
    Hi,

    You can add a <ext:ToolbarFill> on either side of the <ext:Button>. That will "fill" each side of the Button with 50% of the available container width.

    I believe in v2, the Toolbar uses the HBoxLayout, so there's a little more control over layout options, but the suggestion above works great.

    Hope this helps.
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    Hi,

    You can add a <ext:ToolbarFill> on either side of the <ext:Button>. That will "fill" each side of the Button with 50% of the available container width.

    I believe in v2, the Toolbar uses the HBoxLayout, so there's a little more control over layout options, but the suggestion above works great.

    Hope this helps.
    I did not understand your point, how to add <ext:ToolbarFill> on either side of the <ext:Button> ?

Similar Threads

  1. Replies: 7
    Last Post: May 25, 2011, 9:35 AM
  2. [CLOSED] Can't get buttons to align to center in html table
    By dmoore in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 11, 2011, 4:50 PM
  3. [CLOSED] Possible to center an item on a toolbar?
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 18, 2010, 7:21 PM
  4. [CLOSED] Center buttons in a toolbar
    By wazige in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 06, 2010, 12:36 PM
  5. [CLOSED] How to Center Toolbar Items in code behind
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 06, 2009, 3:24 PM

Posting Permissions