提交 da740d71 编写于 作者: 蔡祥熠

Merge branch 'hotfix/embed_style' into 'master'

Merge of hotfix/embed_style 修复嵌入应用的loadCss问题 to master

See merge request o2oa/o2oa!1237

(cherry picked from commit 4bbd1564)

326af3ed 修复嵌入应用的loadCss问题
上级 f195f2da
...@@ -403,16 +403,19 @@ MWF.xApplication.Common.Main = new Class({ ...@@ -403,16 +403,19 @@ MWF.xApplication.Common.Main = new Class({
this.setContentEvent(); this.setContentEvent();
//if (this.options.title) this.setTitle(this.options.title); //if (this.options.title) this.setTitle(this.options.title);
if (this.stylePath) o2.loadCss(this.stylePath); if (this.stylePath){
//this.content.addClass("appContent"); (this.window.node || this.content).loadCss(this.stylePath, function () {
this.loadApplication(function(){
this.loadApplication(function(){ this.fireAppEvent("postLoadApplication");
this.fireAppEvent("postLoadApplication"); }.bind(this));
}.bind(this)); this.fireAppEvent("postLoad");
}.bind(this));
//this.content.setStyle("height", document.body.getSize().y); }else{
this.loadApplication(function(){
this.fireAppEvent("postLoad"); this.fireAppEvent("postLoadApplication");
}.bind(this));
this.fireAppEvent("postLoad");
}
}, },
openInNewBrowser: function (noClose) { openInNewBrowser: function (noClose) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册