Gantt: fixes position of line in pdf (#6348).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4475 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9c6377964c
commit
318bd10c7f
|
@ -157,6 +157,8 @@ module Redmine
|
|||
|
||||
@subjects_rendered = true unless options[:only] == :lines
|
||||
@lines_rendered = true unless options[:only] == :subjects
|
||||
|
||||
render_end(options)
|
||||
end
|
||||
|
||||
def render_project(project, options={})
|
||||
|
@ -222,6 +224,13 @@ module Redmine
|
|||
end
|
||||
end
|
||||
|
||||
def render_end(options={})
|
||||
case options[:format]
|
||||
when :pdf
|
||||
options[:pdf].Line(15, options[:top], PDF::TotalWidth, options[:top])
|
||||
end
|
||||
end
|
||||
|
||||
def subject_for_project(project, options)
|
||||
case options[:format]
|
||||
when :html
|
||||
|
@ -929,8 +938,6 @@ module Redmine
|
|||
:pdf => pdf
|
||||
}
|
||||
render(options)
|
||||
|
||||
pdf.Line(15, top, subject_width+g_width, top)
|
||||
pdf.Output
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue