summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-01-18 00:22:54 +0000
committerGo MAEDA <maeda@farend.jp>2020-01-18 00:22:54 +0000
commit81845dd3f5e531e6f30cdd9841f0af71e4713268 (patch)
treee1f475e0c57b466ad72a6ce0ab46e0596958c14d
parentf23a29a1231362a5eaee95505700795ee9c45cb2 (diff)
downloadredmine-81845dd3f5e531e6f30cdd9841f0af71e4713268.tar.gz
redmine-81845dd3f5e531e6f30cdd9841f0af71e4713268.zip
Merged r19433 from trunk to 4.1-stable (#32812).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19434 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--public/javascripts/gantt.js5
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;