MyDesktop.ProxyWindow = Ext.extend(Ext.app.Module, {
id:'proxy-win',
init : function(){
this.launcher = {
text: '授权管理',
iconCls:'tabs',
handler : this.createWindow,
scope: this
}
}, createWindow : function(){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('proxy-win');
if(!win){
win = desktop.createWindow({
id: 'proxy-win',
title:'授权管理',
width:740,
height:480,
iconCls: 'tabs',
shim:false,
animCollapse:false,
border:false,
constrainHeader:true, layout:'border',
items:[{
title: '授权委托管理',
region: 'west',
split: true,
border: true,
width: 200,
minSize: 175,
maxSize: 400,
collapsible: true,
margins:'0 0 0 5',
layout:'accordion',
layoutConfig:{
animate:true
},
items:[
{title:"授权委托书申请与制作管理",items:[new authorizationTreePanel(1,"授权委托书申请与制作管理")]},
{title:"授权委托书废止",items:[new authorizationTreePanel(2,"授权委托书废止")]},
{title:"授权委托书归档",items:[new authorizationTreePanel(3,"授权委托书归档")]}
]
},new Ext.TabPanel({
id: "authorizationCenterPanel",
//距两边间距
style:"padding:0 5px 0 5px",
region:"center",
//默认选中第一个
activeItem:0,
enableTabScroll:true,
layoutOnTabChange:true,
items:[{
xtype:"panel",
id:"authorizationIndex",
iconCls:"indexicon",
closable:false,
title:"首 页 ",
html:"<iframe src='/law/authorization/AuthorizationHomePage.jsp' scrolling='no' frameborder=0 width=100% height=100%></iframe>"
}]
})]
});
}
win.show();
win.maximize();
}
});
这么一段代码 在首页单击这个模块的时候 会自动最大化 但是最大化的页面“授权委托书归档”一栏被 页面的那个任务栏挡住了, 如果去掉“win.maximize();” 单击弹出的窗口是比较小的 再把它最大化之后的窗口 最后一栏就不会被挡住,请教这么能在默认窗口最大化的情况 而窗口的下半部分不被挡住呢?
id:'proxy-win',
init : function(){
this.launcher = {
text: '授权管理',
iconCls:'tabs',
handler : this.createWindow,
scope: this
}
}, createWindow : function(){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('proxy-win');
if(!win){
win = desktop.createWindow({
id: 'proxy-win',
title:'授权管理',
width:740,
height:480,
iconCls: 'tabs',
shim:false,
animCollapse:false,
border:false,
constrainHeader:true, layout:'border',
items:[{
title: '授权委托管理',
region: 'west',
split: true,
border: true,
width: 200,
minSize: 175,
maxSize: 400,
collapsible: true,
margins:'0 0 0 5',
layout:'accordion',
layoutConfig:{
animate:true
},
items:[
{title:"授权委托书申请与制作管理",items:[new authorizationTreePanel(1,"授权委托书申请与制作管理")]},
{title:"授权委托书废止",items:[new authorizationTreePanel(2,"授权委托书废止")]},
{title:"授权委托书归档",items:[new authorizationTreePanel(3,"授权委托书归档")]}
]
},new Ext.TabPanel({
id: "authorizationCenterPanel",
//距两边间距
style:"padding:0 5px 0 5px",
region:"center",
//默认选中第一个
activeItem:0,
enableTabScroll:true,
layoutOnTabChange:true,
items:[{
xtype:"panel",
id:"authorizationIndex",
iconCls:"indexicon",
closable:false,
title:"首 页 ",
html:"<iframe src='/law/authorization/AuthorizationHomePage.jsp' scrolling='no' frameborder=0 width=100% height=100%></iframe>"
}]
})]
});
}
win.show();
win.maximize();
}
});
这么一段代码 在首页单击这个模块的时候 会自动最大化 但是最大化的页面“授权委托书归档”一栏被 页面的那个任务栏挡住了, 如果去掉“win.maximize();” 单击弹出的窗口是比较小的 再把它最大化之后的窗口 最后一栏就不会被挡住,请教这么能在默认窗口最大化的情况 而窗口的下半部分不被挡住呢?
和
自动执行win.maximize();跟下代码咯友情up
setTimeout(
function() {
win.maximize()
}, 300);
function() {
win.maximize()
}, 350);
}问题就解决了 嘿嘿