]> source.dussan.org Git - redmine.git/commitdiff
Merged r19433 from trunk to 4.1-stable (#32812).
authorGo MAEDA <maeda@farend.jp>
Sat, 18 Jan 2020 00:22:54 +0000 (00:22 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 18 Jan 2020 00:22:54 +0000 (00:22 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19434 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/gantt.js

index ebaaa2b46fe0825ea082f5e91abea309b39577c5..efda080eed1ee928c0bae4e96eb4635a92ff4938 100644 (file)
@@ -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;