ANovokmet / svelte-gantt

:calendar: Interactive JavaScript Gantt chart/resource booking component
https://anovokmet.github.io/svelte-gantt/
MIT License
494 stars 105 forks source link

Layout Pack #232

Open mohamadjomah opened 3 weeks ago

mohamadjomah commented 3 weeks ago

Hi, how can I if layout set as pack only the overlap task size reduced and the other stays exactly as the normal size.

Exempel: image

I want to display the purple color with normal size, because there is no overlap can some help me ?

ANovokmet commented 3 weeks ago

This is the case because the pack layout algorithm is simpler this way. I will take a look when available, but if you or anyone wants to implement this in that way the relevant file is core/pack-layout.ts. Basically if the task is not overlapping with any tasks, set its height to the default one.