在desktop应用中的window中打开另一个网页的代码解决flexpaper在window中不能全屏

来源:互联网 发布:sql替换语句 编辑:程序博客网 时间:2024/06/05 05:50

flexpaper在window中不能全屏的解决

第一种方式:

    //直接加载网页的另一种方法
    var flexwin = desktop.createWindow({
        id: 'flexpaper-win',
        title: '文件管理器',
        width: 740,
        height: 480,
        resizable: true,
        maximizable: false,
        iconCls: 'icon-logout-16',
        shim: false,
        animCollapse: false,
        constrainHeader: true,
        html: "<iframe src='flexpapertest.aspx' style='width:100%; height:100%;'></iframe>"
        //layout: 'border',
        //items: [flexPanel]
    });
    flexwin.show();

第二种方式:

var flexwin = desktop.createWindow({
        id: 'flexpaper-win',
        title: '文件管理器',
        width: 740,
        height: 480,
        resizable: false,
        maximizable: false,
        iconCls: 'icon-logout-16',
        shim: false,
        animCollapse: false,
        constrainHeader: true,
        contentEl: Ext.DomHelper.append(document.body, {
            tag: 'iframe',
            style: "border 0px none;scrollbar:true",
            src: "flexpapertest.aspx",
            height: "100%",
            width: "100%"
        })
        //layout: 'border',
        //items: [flexPanel]
    });
    flexwin.show();

解决flexpaper在window中不能全屏的方法