【问题标题】:dhtmlxGantt - scroll not working when moving taskdhtmlxGantt - 移动任务时滚动不起作用
【发布时间】:2016-02-21 10:13:30
【问题描述】:

如何配置 dhtmlxGantt 在将任务移出可见区域(左、右)时滚动。 例如,我尝试在 4 月 20 日之后在此示例上移动任务“营销”

http://dhtmlx.com/docs/products/dhtmlxGantt/01_basic.html

它不起作用,所以没有水平自动滚动条。

第二个滚动示例

http://dhtmlx.com/docs/products/dhtmlxGantt/05_critical_path.html

我正在尝试将“文档创建”任务拖到右侧,但水平滚动不起作用。

【问题讨论】:

    标签: javascript dhtml dhtmlx gantt-chart


    【解决方案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();
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多