Open ghost opened 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.
In fact, if you are using "daily" mode, dates from model should have time defined to 00:00
to avoid this issue.
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
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 .
Hi Toilal,
Setting the magnet to one day doesn't fix the issue unfortunately.
Still getting the +1 day issue as shown below...
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).
Steps to reproduce;
Before the drag and drop of the task 'Day 3' of the row 'Kickoff', all good;![image](https://cloud.githubusercontent.com/assets/1389396/11780570/de385138-a230-11e5-8ad6-d9b461152495.png)
After the drag and drop (not a resize);![image](https://cloud.githubusercontent.com/assets/1389396/11786278/aff8b7ae-a253-11e5-913c-fbdb53d786aa.png)
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.