dhtmlxGantt, as for version 2.1, does not have option for automatic sizing. Overall height is always defined by height of container DOM element.
So the only possible option is to handle container height manually, with a custom js code.
UPDATE:
Here is a new option of the config, probably it will do the job
http://docs.dhtmlx.com/gantt/api__gantt_autosize_config.html