Explorar o código

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

unknown %!s(int64=5) %!d(string=hai) anos
pai
achega
11ed5ebaab
Modificáronse 1 ficheiros con 1 adicións e 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");