Explorar el Código

修复组件被隐藏,组件图标的高度为0的问题

unknown hace 5 años
padre
commit
11ed5ebaab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      o2web/source/x_component_process_Xform/$Input.js

+ 1 - 1
o2web/source/x_component_process_Xform/$Input.js

@@ -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");