Actions
Defect #44234
closedGantt issue relation lines break when collapsing objects
Defect #44234:
Gantt issue relation lines break when collapsing objects
Added by Jaebok Oh 5 months ago. Updated 4 months ago.
Resolution:
Fixed
Affected version:
Files
| clipboard-202607061543-zhuiz.png (182 KB) clipboard-202607061543-zhuiz.png | Jaebok Oh, 2026-07-06 08:43 | ||
| clipboard-202607061543-bpp9n.png (177 KB) clipboard-202607061543-bpp9n.png | Jaebok Oh, 2026-07-06 08:43 | ||
| before_change.png (182 KB) before_change.png | Mizuki ISHIKAWA, 2026-07-10 02:56 | ||
| after_change.png (181 KB) after_change.png | Mizuki ISHIKAWA, 2026-07-10 02:56 |
Updated by Mizuki ISHIKAWA 5 months ago
Actions
#1
- File before_change.png before_change.png added
- File after_change.png after_change.png added
Thank you for reporting this issue.
The problem is that issueTo.position().top returns 0 when issueTo is display: none.
The following diff fixes this by simply not drawing the line when the target bar is not visible.
diff --git a/app/javascript/controllers/gantt/chart_controller.js b/app/javascript/controllers/gantt/chart_controller.js
index d467c558d..70a39195d 100644
--- a/app/javascript/controllers/gantt/chart_controller.js
+++ b/app/javascript/controllers/gantt/chart_controller.js
@@ -190,6 +190,7 @@ export default class extends Controller {
const issueTo = this.$(`#task-todo-issue-${relation.issue_to}`)
if (issueFrom.length === 0 || issueTo.length === 0) return
+ if (!issueTo.is(":visible")) return
const issueHeight = issueFrom.height()
const issueFromTop = issueFrom.position().top + issueHeight / 2 - this.#drawTop
Updated by Go MAEDA 4 months ago
Actions
#3
- Subject changed from Connector lines break when collapsing the Gantt chart to Gantt issue relation lines break when collapsing objects
- Status changed from Confirmed to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix in r24856. Thank you.
Actions