replace the "south" with the "new Ext.StatusBar" in "layout:'border'"

July 4th, 2009
  • replace the "south" with the "new Ext.StatusBar" in "layout:'border'"

    in the FF look ok,but in the ie the south up has some black space. see the image

    the code under here:



    Ext.onReady(function(){

    Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

    var viewport = new Ext.Viewport({
    layout:'border',
    items:[
    new Ext.BoxComponent({ // raw
    region:'north',
    el: 'north',
    height:32
    }),{
    region:'south',
    split:true,
    collapsible: true,
    margins:'0 0 0 0',
    bbar: new Ext.StatusBar({
    defaultText: 'Default status',
    id: 'right-statusbar',
    statusAlign: 'right', // the magic config
    items: [{
    text: 'A Button'
    }, '-', 'Plain Text', ' ', ' ']
    })
    }, {
    region:'east',
    title: 'East Side',
    collapsible: true,
    split:true,
    width: 225,
    minSize: 175,
    maxSize: 400,
    layout:'fit',
    margins:'0 5 0 0',
    items:
    new Ext.TabPanel({
    border:false,
    activeTab:1,
    tabPosition:'bottom',
    items:[{
    html:'

    A TabPanel component can be a region.

    ',
    title: 'A Tab',
    autoScroll:true
    },
    new Ext.grid.PropertyGrid({
    title: 'Property Grid',
    closable: true,
    source: {
    "(name)": "Properties Grid",
    "grouping": false,
    "autoFitColumns": true,
    "productionQuality": false,
    "created": new Date(Date.parse('10/15/2006')),
    "tested": false,
    "version": .01,
    "borderWidth": 1
    }
    })]
    })
    },{
    region:'west',
    id:'west-panel',
    title:'West',
    split:true,
    width: 200,
    minSize: 175,
    maxSize: 400,
    collapsible: true,
    margins:'0 0 0 5',
    layout:'accordion',
    layoutConfig:{
    animate:true
    },
    items: [{
    contentEl: 'west',
    title:'Navigation',
    border:false,
    iconCls:'nav'
    },{
    title:'Settings',
    html:'

    Some settings in here.

    ',
    border:false,
    iconCls:'settings'
    }]
    },
    new Ext.TabPanel({
    region:'center',
    deferredRender:false,
    activeTab:0,
    items:[{
    contentEl:'center1',
    title: 'Close Me',
    closable:true,
    autoScroll:true
    },{
    contentEl:'center2',
    title: 'Center Panel',
    autoScroll:true
    }]
    })
    ]
    });
    Ext.get("hideit").on('click', function() {
    var w = Ext.getCmp('west-panel');
    w.collapsed ? w.expand() : w.collapse();
    });
    });


  • Give the south region a height.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about replace the "south" with the "new Ext.StatusBar" in "layout:'border'" , Please add it free.

    Navigation

    Calendar

    Blog

    Categories

    Archives
    Search

    Links

    Feeds and Credits