2008-07-11
extjs StatusBar 所在panel 在 south
关键字: extjs statusbar 所在panel 在 south
在把StatusBar放到一个Panel上时,如果这个panel在ViewPort中的South ,需要把 Panel的height 设置成 0 否则在ie7中,会有一个13px的空白。
var statusBar = new Ext.Panel({
// autoHeight: true,
height:0,
// 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
})
}
}
}
});
发表评论
- 浏览: 15904 次
- 性别:

- 来自: 济南

- 详细资料
搜索本博客
我的相册
detail
共 1 张
共 1 张
最新评论
-
grails 根据数据库自动生 ...
不错,不知道实践结果感觉如何,呵呵
-- by casephoen -
grails 导出 excel
你确认在你的controller中定义这个XlsExportService 吗 ...
-- by dellsoft -
grails 导出 excel
不能执行:java.lang.NullPointerException: Can ...
-- by ourfirebird -
jsecurity 资料
一直在关注中,其基于pojo的特性还是很诱人的.
-- by agile_boy -
extjs dwr spring
谢谢,学习,学习
-- by fang_qi






评论排行榜