[CLOSED] Ext.ux.statusbar.StatusBar - tbFill issue

  1. #1

    [CLOSED] Ext.ux.statusbar.StatusBar - tbFill issue

    Attached Thumbnails Click image for larger version. 

Name:	toolbar.png 
Views:	77 
Size:	6.6 KB 
ID:	5575  
    Last edited by Daniil; Feb 08, 2013 at 3:51 PM. Reason: [CLOSED]
  2. #2
    Hi @supera,

    A StatusBar has the specific structure. It has the status in a corner (right or left according to the StatusAlign option) and all the rest things in another corner. It adds a tbfill internally to accomplish this structure. It doesn't allow to get the layout you need.

    Please use a common Toolbar or override the StatusBar's initComponent as needed. The default is:

    StatusBar's initComponent
    initComponent : function(){
        var right = this.statusAlign === 'right';
    
        this.callParent(arguments);
        this.currIconCls = this.iconCls || this.defaultIconCls;
        this.statusEl = Ext.create('Ext.toolbar.TextItem', {
            cls: 'x-status-text ' + (this.currIconCls || ''),
            text: this.text || this.defaultText || ''
        });
    
        if (right) {
            this.cls += ' x-status-right';
            this.add('->');
            this.add(this.statusEl);
        } else {
            this.insert(0, this.statusEl);
            this.insert(1, '->');
        }
    }
  3. #3
    Hi Daniil!

    Changing to common Toolbar, working very fine!

    tbStatus = Ext.create("Ext.toolbar.Toolbar", {
                    itemId: "tbStatus",
                    region: "south"
                });

    Thanks a lot

Similar Threads

  1. [CLOSED] StatusBar height
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 22, 2010, 4:07 PM
  2. [CLOSED] [1.0] Statusbar Issue When using Treepanel PageLoader
    By ljankowski in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 22, 2010, 12:58 PM
  3. [CLOSED] [1.0] StatusBar size
    By state in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Oct 26, 2009, 3:32 PM
  4. [CLOSED] [1.0] statusBar error
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 19, 2009, 2:15 PM
  5. [CLOSED] StatusBar
    By state in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jun 16, 2009, 6:27 PM

Posting Permissions