Defect #34694
Collapse/expand of Gantt chart does not work properly when multiple bars of the same shared version are displayed.
Status: | Confirmed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Gantt | |||
Target version: | Candidate for next minor release | |||
Resolution: | Affected version: | 4.1.1 |
Description
Example:
1. Initial state.
2. The bar will disappear when collapsing Version1 directly under Project1.
I suspect that the cause is in the following line.
source:/branches/4.1-stable/public/javascripts/gantt.js@19434#L262
History
#1
Updated by Go MAEDA 2 months ago
- Status changed from New to Confirmed
I have confirmed the issue. It occurs when a version is shared with subprojects.
Steps to reproduce:
1. Create a shared version in a parent project
2. Set any issue's target version to the shared version in the parent project and its subproject
3. On the gannt, collapse and expand the shared version in the parent project
4. The progress bar for the shared version should appear again after expanding the version but does not
#2
Updated by Yuichi HARADA 2 months ago
- File 34694.patch
added
Go MAEDA wrote:
I have confirmed the issue. It occurs when a version is shared with subprojects.
Steps to reproduce:
1. Create a shared version in a parent project
2. Set any issue's target version to the shared version in the parent project and its subproject
3. On the gannt, collapse and expand the shared version in the parent project
4. The progress bar for the shared version should appear again after expanding the version but does not
I also confirmed.
When the same shared versions are displayed multiple on Gantt, I can't figure out the target taskbar when collapsing one of these versions. To solve this, the top
value at the time of initial display is set in the data-default-top
attribute for each display item. This value is used as an attribute of the selector when to execute collapse/expand.
I have attached a patch.
#3
Updated by Yuichi HARADA about 1 month ago
- File 34694-v2.patch
added
Yuichi HARADA wrote:
I also confirmed.
When the same shared versions are displayed multiple on Gantt, I can't figure out the target taskbar when collapsing one of these versions. To solve this, thetop
value at the time of initial display is set in thedata-default-top
attribute for each display item. This value is used as an attribute of the selector when to execute collapse/expand.
I have attached a patch.
I could get the number of the current rows, so I remade the patch.
#4
Updated by Go MAEDA about 1 month ago
- Target version set to Candidate for next minor release