Просмотр исходного кода

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

unknown 5 лет назад
Родитель
Сommit
11ed5ebaab
1 измененных файлов с 1 добавлено и 1 удалено
  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");