MWF.xDesktop.requireApp("cms.Document", "lp."+o2.language, null, false); MWF.xDesktop.requireApp("cms.Document", "Main", null, false); MWF.xApplication.cms.Document.MainInContainer = new Class({ Extends: MWF.xApplication.cms.Document.Main, Implements: [Options, Events], options: { "style": "default", "name": "cms.Document" }, initialize: function(desktop, options, container, content, scrollNode){ this.setOptions(options); this.desktop = desktop; this.container = container; this.content = content; this.scrollNode = scrollNode; this.path = "../x_component_"+this.options.name.replace(/\./g, "_")+"/$Main/"; this.options.icon = this.path+this.options.style+"/"+this.options.icon; this.cssPath =this.path+this.options.style+"/css.wcss"; this.inBrowser = true; this.inContainer = true; this._loadCss(); }, loadInBrowser: function(){ this.window = { "isHide": false, "isMax": true, "maxSize": function(){}, "restore": function(){}, "setCurrent": function(){}, "hide": function(){}, "maxOrRestoreSize": function(){}, "restoreSize": function(){}, "close": function(){}, "titleText" : { set : function(){} } }; this.window.content = this.content; //this.content = this.window.content; //this.content.setStyles({"height": "100%", "overflow": "hidden"}); //window.addEvent("resize", function(){ // this.fireAppEvent("resize"); //}.bind(this)); //window.onbeforeunload = function(e){ // this.fireAppEvent("queryClose"); //}.bind(this); this.fireAppEvent("postLoadWindow"); this.fireAppEvent("queryLoadApplication"); this.setContentEvent(); this.loadApplication(function(){ this.fireAppEvent("postLoadApplication"); }.bind(this)); //this.content.setStyle("height", document.body.getSize().y); this.fireAppEvent("postLoad"); }, createNode: function(){ this.content.setStyle("overflow", "hidden"); this.node = new Element("div.reportNode", { "styles": {"width": "100%", "height": "100%", "overflow": "hidden"} }).inject(this.container); } });