##// END OF EJS Templates
Gantt: fixes position of line in pdf (#6348)....
Jean-Philippe Lang -
r4361:318bd10c7f4d
parent child
Show More
@@ -157,6 +157,8 module Redmine
157
157
158 @subjects_rendered = true unless options[:only] == :lines
158 @subjects_rendered = true unless options[:only] == :lines
159 @lines_rendered = true unless options[:only] == :subjects
159 @lines_rendered = true unless options[:only] == :subjects
160
161 render_end(options)
160 end
162 end
161
163
162 def render_project(project, options={})
164 def render_project(project, options={})
@@ -221,6 +223,13 module Redmine
221 options[:indent] -= options[:indent_increment]
223 options[:indent] -= options[:indent_increment]
222 end
224 end
223 end
225 end
226
227 def render_end(options={})
228 case options[:format]
229 when :pdf
230 options[:pdf].Line(15, options[:top], PDF::TotalWidth, options[:top])
231 end
232 end
224
233
225 def subject_for_project(project, options)
234 def subject_for_project(project, options)
226 case options[:format]
235 case options[:format]
@@ -929,8 +938,6 module Redmine
929 :pdf => pdf
938 :pdf => pdf
930 }
939 }
931 render(options)
940 render(options)
932
933 pdf.Line(15, top, subject_width+g_width, top)
934 pdf.Output
941 pdf.Output
935 end
942 end
936
943
General Comments 0
You need to be logged in to leave comments. Login now