فهرست منبع

修复表单设计列表界面没有滚动条的问题

unknown 5 سال پیش
والد
کامیت
90106bd861

+ 4 - 0
o2web/source/x_component_process_ProcessManager/DictionaryExplorer.js

@@ -251,6 +251,10 @@ MWF.xApplication.process.ProcessManager.DictionaryExplorer = new Class({
                     }.bind(this));
                 }
             }
+            if( !this.isSetContentSize ){
+                this.setContentSize();
+                this.isSetContentSize = true;
+            }
         }.bind(this));
     },
     deleteItems: function(){

+ 10 - 1
o2web/source/x_component_process_ProcessManager/Explorer.js

@@ -177,13 +177,18 @@ MWF.xApplication.process.ProcessManager.Explorer = new Class({
         }.bind(this));
     },
     setContentSize: function(){
+        debugger;
         if (this.elementContentListNode){
             var toolbarSize = (this.toolbarNode) ? this.toolbarNode.getSize() : {"x": 0, "y": 0};
             var nodeSize = (this.node) ? this.node.getSize() : {"x": 0, "y": 0};
+            var categorySize = this.categoryElementNode ? this.categoryElementNode.getSize() : {"x": 0, "y": 0};
+
+            console.log("categorySize.y="+categorySize.y);
+
             var pt = this.elementContentNode.getStyle("padding-top").toFloat();
             var pb = this.elementContentNode.getStyle("padding-bottom").toFloat();
 
-            var height = nodeSize.y-toolbarSize.y-pt-pb;
+            var height = nodeSize.y-toolbarSize.y-categorySize.y-pt-pb;
             this.elementContentNode.setStyle("height", ""+height+"px");
 
             var count = (nodeSize.x/282).toInt();
@@ -226,6 +231,10 @@ MWF.xApplication.process.ProcessManager.Explorer = new Class({
                 }.bind(this));
             }
             this.loadCategoryList();
+            if( !this.isSetContentSize ){
+                this.setContentSize();
+                this.isSetContentSize = true;
+            }
         }.bind(this));
     },
     loadCategoryList: function(){