如何将dhtmlxGantt配置为在将任务移出可见区域(左,右)时滚动。 例如,我试图在4月20日之后移动任务“营销”这个样本
http://dhtmlx.com/docs/products/dhtmlxGantt/01_basic.html
它不起作用,因此没有水平自动滚动条。
滚动
的第二个例子http://dhtmlx.com/docs/products/dhtmlxGantt/05_critical_path.html
我正在尝试将“文档创建”任务拖到右侧,但水平滚动无法正常工作。
答案 0 :(得分:-1)
您提供的示例页面会回答您的问题。触发一个函数以启用水平滚动:
事件:
<body onresize="modHeight()">
功能:
function modHeight(){
var headHeight = 35;
var sch = document.getElementById("gantt_here");
sch.style.height = (parseInt(document.body.offsetHeight)-headHeight)+"px";
gantt.setSizes();
}