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

Merge branch 'fix/Selector.moa_bug1' into 'develop'

Merge of fix/Selector.moa_bug1 to develop

See merge request o2oa/o2oa!71
蔡祥熠 5 лет назад
Родитель
Сommit
3a2c8835bd
1 измененных файлов с 13 добавлено и 12 удалено
  1. 13 12
      o2web/source/x_component_Selector/Person.js

+ 13 - 12
o2web/source/x_component_Selector/Person.js

@@ -2104,12 +2104,12 @@ MWF.xApplication.Selector.Person.ItemCategory = new Class({
             }.bind(this));
         }
 
-        var subIdList = this.selector._getChildrenItemIds(this.data);
-        if (subIdList){
-            var count = subIdList.length;
-            this.childrenHeight = count*this.selector.options.itemHeight;
-            this.children.setStyle("height", ""+this.childrenHeight+"px");
-        }
+        // var subIdList = this.selector._getChildrenItemIds(this.data);
+        // if (subIdList){
+        //     var count = subIdList.length;
+        //     this.childrenHeight = count*this.selector.options.itemHeight;
+        //     this.children.setStyle("height", ""+this.childrenHeight+"px");
+        // }
         //if (!this._hasChild()){
         //    this.textNode.setStyle("color", "#333");
         //}
@@ -2211,12 +2211,13 @@ MWF.xApplication.Selector.Person.ItemCategory = new Class({
         }).inject(this.node, "after");
         if (!this.selector.options.expand) this.children.setStyle("display", "none");
 
-        var subIdList = this.selector._getChildrenItemIds(this.data);
-        if (subIdList){
-            var count = subIdList.length;
-            this.childrenHeight = count*this.selector.options.itemHeight;
-            this.children.setStyle("height", ""+this.childrenHeight+"px");
-        }
+        // var subIdList = this.selector._getChildrenItemIds(this.data);
+        // if (subIdList){
+        //     var count = subIdList.length;
+        //     this.childrenHeight = count*this.selector.options.itemHeight;
+        //     this.children.setStyle("height", ""+this.childrenHeight+"px");
+        // }
+
         if (!this._hasChild()){
             this.actionNode.setStyle("background", "transparent");
             this.textNode.setStyle("color", "#777");