提交 90106bd8 编写于 作者: U unknown

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

上级 0533bb1d
......@@ -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(){
......
......@@ -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(){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册