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();” 单击弹出的窗口是比较小的 再把它最大化之后的窗口 最后一栏就不会被挡住,请教这么能在默认窗口最大化的情况 而窗口的下半部分不被挡住呢?

解决方案 »

  1.   

    插件?手动点击最大化

    自动执行win.maximize();跟下代码咯友情up
      

  2.   

    LZ在开发webos吗? 有空大家交流下
      

  3.   

    我用这个自带模块Ext.app.Module,写了个空window自动最大化也不会挡住任务栏你这个问题不知道了,坐等解答
      

  4.   

    win.show();
                        setTimeout(
                        function() {
                            win.maximize()
                        }, 300);
      

  5.   

    我这里说的挡住任务栏不是xp的任务栏 是“ext-3.3.1/examples/desktop/desktop.html”这个页面的的任务栏 另外是任务栏挡住了弹出窗口
      

  6.   

    谢谢了 我改成setTimeout(
        function() {
        win.maximize()
        }, 350);
          }问题就解决了 嘿嘿