Sfoglia il codice sorgente

Merge branch 'fix/Process.design_scroll' into 'wrdp'

Merge of fix/Process.design_scroll 修复表单设计列表界面没有滚动条的问题 to wrdp

See merge request o2oa/o2oa!2385
蔡祥熠 5 anni fa
parent
commit
7ce550a86b

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

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

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

@@ -180,10 +180,12 @@ MWF.xApplication.process.ProcessManager.Explorer = new Class({
         if (this.elementContentListNode){
         if (this.elementContentListNode){
             var toolbarSize = (this.toolbarNode) ? this.toolbarNode.getSize() : {"x": 0, "y": 0};
             var toolbarSize = (this.toolbarNode) ? this.toolbarNode.getSize() : {"x": 0, "y": 0};
             var nodeSize = (this.node) ? this.node.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};
+
             var pt = this.elementContentNode.getStyle("padding-top").toFloat();
             var pt = this.elementContentNode.getStyle("padding-top").toFloat();
             var pb = this.elementContentNode.getStyle("padding-bottom").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");
             this.elementContentNode.setStyle("height", ""+height+"px");
 
 
             var count = (nodeSize.x/282).toInt();
             var count = (nodeSize.x/282).toInt();
@@ -226,6 +228,10 @@ MWF.xApplication.process.ProcessManager.Explorer = new Class({
                 }.bind(this));
                 }.bind(this));
             }
             }
             this.loadCategoryList();
             this.loadCategoryList();
+            if( !this.isSetContentSize ){
+                this.setContentSize();
+                this.isSetContentSize = true;
+            }
         }.bind(this));
         }.bind(this));
     },
     },
     loadCategoryList: function(){
     loadCategoryList: function(){