mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Fix that end markers in gantt PDF are misaligned (#19248).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19595 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
94777d40b0
commit
0a9b72ab9c
@ -631,7 +631,7 @@ module Redmine
|
|||||||
coords[:bar_start] = 0
|
coords[:bar_start] = 0
|
||||||
end
|
end
|
||||||
if end_date < self.date_to
|
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
|
coords[:bar_end] = end_date - self.date_from + 1
|
||||||
else
|
else
|
||||||
coords[:bar_end] = self.date_to - self.date_from + 1
|
coords[:bar_end] = self.date_to - self.date_from + 1
|
||||||
@ -897,7 +897,7 @@ module Redmine
|
|||||||
if coords[:end]
|
if coords[:end]
|
||||||
style = +""
|
style = +""
|
||||||
style << "top:#{params[:top]}px;"
|
style << "top:#{params[:top]}px;"
|
||||||
style << "left:#{coords[:end] + params[:zoom]}px;"
|
style << "left:#{coords[:end]}px;"
|
||||||
style << "width:15px;"
|
style << "width:15px;"
|
||||||
output << view.content_tag(:div, ' '.html_safe,
|
output << view.content_tag(:div, ' '.html_safe,
|
||||||
:style => style,
|
:style => style,
|
||||||
@ -1034,7 +1034,7 @@ module Redmine
|
|||||||
])
|
])
|
||||||
end
|
end
|
||||||
if coords[:end]
|
if coords[:end]
|
||||||
x = params[:subject_width] + coords[:end] + params[:zoom]
|
x = params[:subject_width] + coords[:end]
|
||||||
y = params[:top] - height / 2
|
y = params[:top] - height / 2
|
||||||
params[:image].fill('blue')
|
params[:image].fill('blue')
|
||||||
params[:image].draw('polygon %d,%d %d,%d %d,%d %d,%d' % [
|
params[:image].draw('polygon %d,%d %d,%d %d,%d %d,%d' % [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user