Actions
Defect #44234
closedGantt issue relation lines break when collapsing objects
Resolution:
Fixed
Affected version:
Files
Updated by Mizuki ISHIKAWA 17 days ago
- 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 about 13 hours ago
- Status changed from Resolved to Closed
Merged the fix into 7.0-stable branch in r24863.
Actions