提交 6bcb84f3 编写于 作者: U unknown

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

上级 acf7fa93
......@@ -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.
先完成此消息的编辑!
想要评论请 注册