Can I have multiline text in task_text somehow?

I can adjust row_height and task_height in gantt.config but I cant find a way to display multiline text in text field.

gantt.templates.task_text = function (start, end, task) {
    return "<div>First Line<br>Second Line</div>";
}

only displays “First Line” and hides the rest somewhere…

is there some way to enable multiline?

1 Like

I found a temporary fix with css styling modification:

.gantt_task_content { line-height: inherit; overflow: hidden; height: 100%; }

when i change line-height from inherit to 100% then it does not float over dimensions.

1 Like