您的位置:首页 > 编程语言

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

2011-09-18 10:15 429 查看
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中不能全屏的方法
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐