gantt-task-react icon indicating copy to clipboard operation
gantt-task-react copied to clipboard

Extend date problem If start and end date are same.

Open srknnn opened this issue 2 years ago • 10 comments

Hi, I have a problem about date range changing if start and end date are same. I can drag all bar in this case but I want to extend from start or end date. I cannot see the drag arrow Can you help me about this. Thank you. image

srknnn avatar Aug 12 '22 10:08 srknnn

+1

kagansari avatar Aug 12 '22 11:08 kagansari

The date of the item can have time component. If you set the end date to 12/8/2020 23:59:59, does that work for you?

Graeme43 avatar Aug 21 '22 08:08 Graeme43

Ok I see the issue. When the bar is too small to be rendered with the correct width for the duration of the task the element is rendered as a "smalltask" that is the width of the 2 date drag handlers but does not show the start and end drag handles.

Graeme43 avatar Aug 21 '22 11:08 Graeme43

@Graeme43 is there any solution about it? Because for the begining, start and end dates can be same.

srknnn avatar Aug 23 '22 18:08 srknnn

The only way to stop this behaviour is to add a flag like disableSmallTask that would stop the conversion of tasks into smalltasks. @MaTeMaTuK what do you think?

Graeme43 avatar Aug 25 '22 09:08 Graeme43

The only way to stop this behaviour is to add a flag like disableSmallTask that would stop the conversion of tasks into smalltasks. @MaTeMaTuK what do you think?

What you want to implement please explain and then I can give a solution for this.

Arjit-Shivansh avatar Sep 12 '22 06:09 Arjit-Shivansh

Actually I explained on this link https://github.com/MaTeMaTuK/gantt-task-react/issues/101#issue-1337055888 İf I dont have any time differences between start and end date, I cannot drag bar to extend. Could i explain? if you ask me this question? @Arjit-Shivansh

srknnn avatar Sep 13 '22 11:09 srknnn

I placed this tag disableSmallTask on Gantt component and it didn't work does anyone know where to place this tag? I didn't find this tag in the project...

Robertoleanonsystems avatar Feb 23 '23 17:02 Robertoleanonsystems

When Type is Task and bar is too small, it sets barSmall and barSmall component doesn't have left and right bar handles to expand

image

Robertoleanonsystems avatar Feb 23 '23 17:02 Robertoleanonsystems

This is a problem when you zoom out to a year view and still want to update.

Users will still want to be able to extend from a zoomed out view.

JoeGaffney avatar Apr 14 '23 12:04 JoeGaffney