diff options
author | Go MAEDA <maeda@farend.jp> | 2020-01-18 00:21:35 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-01-18 00:21:35 +0000 |
commit | a7ae2ec0aa8289149d60cca907f827b72d2edc34 (patch) | |
tree | 7af6f4a7e70a4093b003ed2e6df19eae217f77cf /public/javascripts/gantt.js | |
parent | 19488495729f80c3c0614cb5eae9e7a5a6dad10d (diff) | |
download | redmine-a7ae2ec0aa8289149d60cca907f827b72d2edc34.tar.gz redmine-a7ae2ec0aa8289149d60cca907f827b72d2edc34.zip |
Clicking on a parent object in gantt wrongly collapses objects at the same level (#32812).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19433 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts/gantt.js')
-rw-r--r-- | public/javascripts/gantt.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/public/javascripts/gantt.js b/public/javascripts/gantt.js index ebaaa2b46..efda080ee 100644 --- a/public/javascripts/gantt.js +++ b/public/javascripts/gantt.js @@ -231,8 +231,9 @@ function resizableSubjectColumn(){ } ganttEntryClick = function(e){ - var subject = $(e.target.parentElement); - var subject_left = parseInt(subject.css('left')); + var icon_expander = e.target; + var subject = $(icon_expander.parentElement); + var subject_left = parseInt(subject.css('left')) + parseInt(icon_expander.offsetWidth); var target_shown = null; var target_top = 0; var total_height = 0; |