Project

General

Profile

Actions

Defect #44234

closed

Gantt issue relation lines break when collapsing objects

Added by Jaebok Oh 20 days ago. Updated about 12 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Gantt
Target version:
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
Actions #1

Updated by Mizuki ISHIKAWA 17 days ago

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

Actions #2

Updated by Go MAEDA 17 days ago

  • Subject changed from Connector lines break when collapsing the Gantt chart. to Connector lines break when collapsing the Gantt chart
  • Category set to Gantt
  • Status changed from New to Confirmed
  • Target version set to 7.0.1
Actions #3

Updated by Go MAEDA 4 days ago

  • 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 #4

Updated by Go MAEDA about 12 hours ago

  • Status changed from Resolved to Closed

Merged the fix into 7.0-stable branch in r24863.

Actions

Also available in: Atom PDF