-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overlapping Events, Event Bar below other #70
Comments
Hello, And thanks! I meant more, that if there are overlapping events f.e. in ligne1, the first (sorted by start date) should be on top of the 2nd and so on by expanding the row height. As I see Ligne 1 / 2 etc as a bookable resource for the events. Any idea how to achieve this? Thanks again, |
So you mean expanding the parent row height to stack the events on top of each others (when they overlap) and not using the children rows ? I don't quite undersand your use case, the tasks in the main row are events, but the tasks in the children rows are resources for the events ? |
Hello, No, I mean like the resource grid in Fullcalendar The columns are resources (can be tree or not) and the corresponding line shows the events with the resource (for example a room or machine). So to say not a Gantt chart but a resource booking timeline. Thanks! |
Alright thanks for the resource, I understand way better now. I'll have a look at it in the following days an see what I can do :) |
Hello, did you achieve any progress for this? Thanks! |
Hello, |
@martinfruehmorgen as a workaround this is what I have done to achieve something similar. Line 1305 in index.js, I give each task an eventType and then alter its y position in the row depending upon that eventType. /******************************************** EDWARDS CODE HERE *******************************/
if(ctx[0].eventType === "jobslot"){
ctx[6].y = ctx[6].y - 5
} else if(ctx[0].eventType === "activity"){
ctx[6].y = ctx[6].y +25
}else if(ctx[0].eventType === "timesheet"){
ctx[6].y = ctx[6].y +55
} Line 1351 in index.js then I change the height of each task to fit inside the row height. set_style(div1, "height", /*height*/ ctx[1]/2.8 + "px"); //EDWARDS CODE HERE This is very buggy still, especially when I manipulate the window size or click between day and week. |
I am also interested in this. But its not very easy to implement. Especially with task reflections. |
@V-Py Have you made any progress on this? Any thoughts? |
@BlueFoxPrime Just so I'm understanding this correctly, you mean each row is now in reality a big css grid? |
Currently each task is positioned absolute. My idea is to use a css grid and grid rows for y positions. Which in my view could significantly improve the performance and enable the requested feature. It would require core changes.
|
Hi @BlueFoxPrime , Thanks, |
Configures how the overlapping tasks display #70
V4.2.0 has a new option. Gantt can be set with the This feature can definitely be improved, so please give any feedback. For example, the row is not expanded, but the task's height shrinks - it would make sense to allow the layout where tasks stay the same size but the row expands. Also, the layout algorithm isn't the best - if multiple tasks overlap the same task but not each other, there is going to be some empty space. |
Thanks a lot! That's what I was trying to achieve. It would be great if the row would be expanded depending on the max amount of overlapping events in the timerange. |
v4.4.0 has the |
Hello @ANovokmet , Thank you, |
Hello,
Is there a way to have overlapping events in a row below each other and not visually overlapping?
Any hint how to achieve that, is appreciated!
edit: I see, it was discussed already
#19 (comment)
Any news regarding this?
Thanks
Martin
The text was updated successfully, but these errors were encountered: