An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
Not possible to use different row height for rows, also task bar height fill in the space if rowHeight used, and has wrong position if getRowHeight used.
Why do rowHeight and getRowHeight behave differently?
When using getRowHeight to dynamically set row height, how can I get my tasks to be vertically centered?
When using getRowHeight to dynamically set row height, how can I get my tasks to increase in height to fill the space their row gives them?
I originally reported this issue in the Bryntum forums. I'm happy to provide more/clearer context if that would be helpful. Just let me know, happy to help in any way that I can 👍🏼
Not possible to use different row height for rows, also task bar height fill in the space if
rowHeight
used, and has wrong position ifgetRowHeight
used.Forum post
I'm trying to add variable height for my gantt rows with some logic such as this:
This works for setting the row-height, but the height of the tasks in that row have 2 issues:
the task does not grow in height to fill the row the shorter task is not vertically centered in the row
To try and see what's going on, I tested setting a height of 72 in two different ways. I'll show the config followed by the result for each method:
Questions
I need help answering 3 questions:
Why do rowHeight and getRowHeight behave differently? When using getRowHeight to dynamically set row height, how can I get my tasks to be vertically centered? When using getRowHeight to dynamically set row height, how can I get my tasks to increase in height to fill the space their row gives them?