Project

General

Profile

Defect #19248 » 19248.patch

Yuichi HARADA, 2020-03-18 02:13

View differences:

lib/redmine/helpers/gantt.rb
631 631
            coords[:bar_start] = 0
632 632
          end
633 633
          if end_date < self.date_to
634
            coords[:end] = end_date - self.date_from
634
            coords[:end] = end_date - self.date_from + 1
635 635
            coords[:bar_end] = end_date - self.date_from + 1
636 636
          else
637 637
            coords[:bar_end] = self.date_to - self.date_from + 1
......
897 897
          if coords[:end]
898 898
            style = +""
899 899
            style << "top:#{params[:top]}px;"
900
            style << "left:#{coords[:end] + params[:zoom]}px;"
900
            style << "left:#{coords[:end]}px;"
901 901
            style << "width:15px;"
902 902
            output << view.content_tag(:div, '&nbsp;'.html_safe,
903 903
                                       :style => style,
......
1031 1031
            ])
1032 1032
          end
1033 1033
          if coords[:end]
1034
            x = params[:subject_width] + coords[:end] + params[:zoom]
1034
            x = params[:subject_width] + coords[:end]
1035 1035
            y = params[:top] - height / 2
1036 1036
            params[:image].fill('blue')
1037 1037
            params[:image].draw('polygon %d,%d %d,%d %d,%d %d,%d' % [
(5-5/5)