angular-gantt / angular-gantt

Gantt chart component for AngularJS
https://www.angular-gantt.com
MIT License
1.42k stars 488 forks source link

Group bars not displayed correctly #560

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi, This is a follow-up on the #558.

I tested your workaround, this is actually working and resolves the "compressed" task bar issue. However, the second issue (appearing because of the fix) still occurs;

Here is how to reproduce it using your demo app;

To make sure my tasks are always accurate and displayed correctly, I reset the TO date at the end of the day for every change (same behavior with add 1 second).

image

Steps to reproduce;

Before the drag and drop of the task 'Day 3' of the row 'Kickoff', all good; image

After the drag and drop (not a resize); image

As soon as I "drag" a task, the bar gets extended to +1 day.

Thanks again for any help on this. Not sure if you want me to create a new ticket.

Toilal commented 8 years ago

I understand the issue. Problem is that Daily option is only a view option. In fact, when a task is for example Oct 09,20:30 - Oct 10, 03:00, the Daily mode will spread in on the whole two days.

Toilal commented 8 years ago

In fact, if you are using "daily" mode, dates from model should have time defined to 00:00 to avoid this issue.

ghost commented 8 years ago

Thank you for the swift reply. Seems that I am in a dead end; If I set my dates to 00:00, I will get the "compressed" one day bar per explained in #558. But if I don't, I will get the +1 day behavior exposed above.

My temporary workaround is to disable the allow-moving attribute of the gantt-movable plugin. Do you see any other solutions?

Best, Andrew

Toilal commented 8 years ago

What if you define magnet to 1 day? Le 15 déc. 2015 1:15 PM, "andrewde" notifications@github.com a écrit :

Thank you for the swift reply. Seems that I am in a dead end; If I set my dates to 00:00, I will get the "compressed" one day bar per explained in #558 https://github.com/angular-gantt/angular-gantt/issues/558. But if I don't, I will get the +1 day behavior exposed above.

My temporary workaround is to disable the allow-moving attribute of the gantt-movable plugin. Do you see any other solutions?

Best, Andrew

— Reply to this email directly or view it on GitHub https://github.com/angular-gantt/angular-gantt/issues/560#issuecomment-164747369 .

ghost commented 8 years ago

Hi Toilal, Setting the magnet to one day doesn't fix the issue unfortunately. Still getting the +1 day issue as shown below... image