From 50548f0e23607cabc8a98eb90f5d528788124d65 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 20 Mar 2020 06:20:46 +0000 Subject: [PATCH] Merged r19595 from trunk to 4.1-stable (#19248). git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19596 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 0694ab83d..e98ec9365 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -631,7 +631,7 @@ module Redmine coords[:bar_start] = 0 end if end_date < self.date_to - coords[:end] = end_date - self.date_from + coords[:end] = end_date - self.date_from + 1 coords[:bar_end] = end_date - self.date_from + 1 else coords[:bar_end] = self.date_to - self.date_from + 1 @@ -897,7 +897,7 @@ module Redmine if coords[:end] style = +"" style << "top:#{params[:top]}px;" - style << "left:#{coords[:end] + params[:zoom]}px;" + style << "left:#{coords[:end]}px;" style << "width:15px;" output << view.content_tag(:div, ' '.html_safe, :style => style, @@ -1034,7 +1034,7 @@ module Redmine ]) end if coords[:end] - x = params[:subject_width] + coords[:end] + params[:zoom] + x = params[:subject_width] + coords[:end] y = params[:top] - height / 2 params[:image].fill('blue') params[:image].draw('polygon %d,%d %d,%d %d,%d %d,%d' % [ -- 2.39.5