`
dellsoft
  • 浏览: 110848 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

extjs StatusBar 所在panel 在 south

EXT 
阅读更多
在把StatusBar放到一个Panel上时,如果这个panel在ViewPort中的South ,需要把 Panel的height 设置成 0 否则在ie7中,会有一个13px的空白。


 var statusBar = new Ext.Panel({
//            autoHeight: true,
          [b]  height:0,[/b]
            //            title: 'StatusBar',
            region:'south',
            //            bodyStyle: 'padding:5px;',
            bbar: new Ext.StatusBar({

                id: 'southStatus',
                // defaults to use when the status is cleared:
                //                defaultText: 'Default status text',
                defaultIconCls: 'default-icon',
                // values to set initially:
                text: '',
                iconCls: 'ready-icon',

                // any standard Toolbar items:
                items: [{
                    text: '软件',
                    handler: function() {
                        window.location = 'http://www.xxx.com.cn';
                    }
                }, '-', {text:new Date().format('Y-m-d')},'-', clock]
            }),
            listeners:{
                'render':{
                    fn:function() {
                        Ext.TaskMgr.start({
                            run:function() {
                                Ext.fly(clock.getEl()).update(new Date().format('g:i:s A'));
                            },
                            interval: 1000
                        })
                    }
                }
            }
        });
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics