3

I have the gantt height in 100% but if the gantt have a lot of information he create a scroll or if have a little information he create a big square with the information and very big space untill the square finish. Any idea, please, Help. What I want is if has a lot of inrfomation dont create the initial scroll or if has little information only draw the neccesary square

4

1 回答 1

3

dhtmlxGantt 与 2.1 版一样,没有自动调整大小的选项。总高度始终由容器 DOM 元素的高度定义。

因此,唯一可能的选择是使用自定义 js 代码手动处理容器高度。

更新:

这是配置的一个新选项,它可能会完成这项工作

http://docs.dhtmlx.com/gantt/api__gantt_autosize_config.html

于 2014-03-07T10:28:12.037 回答