|
发表于 2019-11-14 10:06:05
|
显示全部楼层
修改了JS文件,暂时解决了,但不知道是不是完美,文件 :webServer\x_component_process_TaskCenter\List.js行:395
createListAreaNode: function(){
this.listScrollAreaNode = new Element("div", {"styles": this.css.listScrollAreaNode}).inject(this.contentNode);
var _self = this;
if(layout.mobile){
this.listAreaNode = this.listScrollAreaNode;
this.listScrollAreaNode.style.overflowY = 'auto';
}else{
this.listAreaNode = new Element("div", {"styles": this.css.listAreaNode}).inject(this.listScrollAreaNode);
MWF.require("MWF.widget.ScrollBar", function(){
new MWF.widget.ScrollBar(this.listScrollAreaNode, {
"style":"xApp_TaskList", "where": "before", "distance": 30, "friction": 4, "axis": {"x": false, "y": true},
"onScroll": function(y, x){
//new Element("div", {"text": "sss-"+y}).inject(_self.listScrollAreaNode, "before");
// _self.app.taskTitleTextNode.set("text", "start");
// _self.app.taskTitleTextNode.set("text", y);
// if (!detail){
var scrollSize = _self.listScrollAreaNode.getScrollSize();
var clientSize = _self.listScrollAreaNode.getSize();
var scrollHeight = scrollSize.y-clientSize.y;
if (y+200>scrollHeight) {
if (!_self.isElementLoaded) _self.listItemNext();
}
// }else{
// _self.app.taskTitleTextNode.set("text", y);
// }
}
});
}.bind(this));
}
}, |
|