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

Merge branch 'fix/Process.iconNode_height0' into 'release'

Merge of fix/[流程管理]修复表单组件设置成隐藏的时候,组件图标高度为0的问题 to release

See merge request o2oa/o2oa!448
......@@ -34,10 +34,10 @@
"gulp-if": "^2.0.2",
"gulp-rename": "^1.4.0",
"gulp-sftp": "^0.1.5",
"gulp-sftp-up4": "^0.1.8",
"gulp-tm-asset-rev": "0.0.16",
"gulp-tm-uglify": "3.0.1",
"merge-stream": "^1.0.1",
"minimist": "^1.2.0",
"gulp-sftp-up4": "^0.1.8"
"minimist": "^1.2.0"
}
}
......@@ -30,7 +30,7 @@ if( !MWF.CMS$Input_Process ){
}
}
if (this.json.inputStyles) if (this.node.getFirst()) this.node.getFirst().setStyles(this.json.inputStyles);
if (this.iconNode){
if (this.iconNode && this.iconNode.offsetParent !== null ){
var size = this.node.getSize();
this.iconNode.setStyle("height", ""+size.y+"px");
}
......
......@@ -602,7 +602,7 @@ MWF.xApplication.cms.Xform.Readerfield = MWF.CMSReaderfield = new Class({
}else{
if (this.json.styles) this.node.setStyles(this.json.styles);
if (this.json.inputStyles) if (this.node.getFirst()) this.node.getFirst().setStyles(this.json.inputStyles);
if (this.iconNode){
if (this.iconNode && this.iconNode.offsetParent !== null){
var size = this.node.getSize();
this.iconNode.setStyle("height", ""+size.y+"px");
}
......
......@@ -158,7 +158,7 @@ MWF.xApplication.process.Xform.$Input = MWF.APP$Input = new Class({
_loadStyles: function(){
if (this.json.styles) this.node.setStyles(this.json.styles);
if (this.json.inputStyles) if (this.node.getFirst()) this.node.getFirst().setStyles(this.json.inputStyles);
if (this.iconNode){
if (this.iconNode && this.iconNode.offsetParent !== null ){ //没有被隐藏
var size = this.node.getSize();
//if (!size.y){
// var y1 = this.node.getStyle("height");
......
......@@ -923,7 +923,7 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class({
}else{
if (this.json.styles) this.node.setStyles(this.json.styles);
if (this.json.inputStyles) if (this.node.getFirst()) this.node.getFirst().setStyles(this.json.inputStyles);
if (this.iconNode){
if (this.iconNode && this.iconNode.offsetParent !== null ){
var size = this.node.getSize();
this.iconNode.setStyle("height", ""+size.y+"px");
}
......
......@@ -581,7 +581,7 @@ MWF.xApplication.process.Xform.Orgfield = MWF.APPOrgfield = new Class({
}else{
if (this.json.styles) this.node.setStyles(this.json.styles);
if (this.json.inputStyles) if (this.node.getFirst()) this.node.getFirst().setStyles(this.json.inputStyles);
if (this.iconNode){
if (this.iconNode && this.iconNode.offsetParent !== null ){
var size = this.node.getSize();
this.iconNode.setStyle("height", ""+size.y+"px");
}
......
......@@ -887,7 +887,7 @@ MWF.xApplication.process.Xform.Personfield = MWF.APPPersonfield = new Class({
}else{
if (this.json.styles) this.node.setStyles(this.json.styles);
if (this.json.inputStyles) if (this.node.getFirst()) this.node.getFirst().setStyles(this.json.inputStyles);
if (this.iconNode){
if (this.iconNode && this.iconNode.offsetParent !== null ){
var size = this.node.getSize();
this.iconNode.setStyle("height", ""+size.y+"px");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册