prevent task getting smaller than 1 day on resize


When resizing a task, it’s possible to resize it to 0 days (task looks like a thin line). Is it possible to prevent this from happening? I would like the tasks to be 1 day wide as a minimum.

most probably this will be fixed in next version of the component.
For now you may limit minimal task size manually:[code]gantt.attachEvent(“onTaskDrag”, function(id, mode, task){
if(mode == gantt.config.drag_mode.resize){
if(task.end_date - task.start_date < 10006060*24){

		task.end_date = gantt.calculateEndDate(task.start_date, 1);
		task.duration = 1;

});[/code] … event.html

works perfect, ty