OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Exclude collapsed rows from the parent box height calculation
Aleix Suau4847c6948d13
diff --git a/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts b/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.tsindex 3032c686ce8..fce5e969898 100644--- a/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts+++ b/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts@@ -429,7 +429,7 @@ export class TimelineCellRenderer {const previousChildrenDurationBar = row.querySelector('.children-duration-bar');const childrenDurationBar = document.createElement('div');const childrenDurationHoverContainer = document.createElement('div');- const visibleChildren = document.querySelector('wp-timeline-container')?.querySelectorAll(`.__hierarchy-group-${wp.id}`).length || 0;+ const visibleChildren = document.querySelectorAll(`.wp-timeline-cell.__hierarchy-group-${wp.id}:not([class*='__collapsed-group'])`).length || 0;childrenDurationBar.classList.add('children-duration-bar', '-clamp-style');childrenDurationBar.title = this.text.label_children_derived_duration;