Project

General

Profile

Patch #30919 » 0001-fix-pdf-generation-of-full-width-layout.patch

Apply over previous patches to fix pdf export (wide) - Frederico Camara, 2021-08-23 21:12

View differences:

lib/redmine/export/pdf/issues_pdf_helper.rb
while values.present?
if values[0].custom_field.full_width_layout?
while values.present? && values[0].custom_field.full_width_layout?
heights = []
value = values.shift
pdf.SetFontStyle('B',9)
pdf.RDMCell(35, 5, "#{value.custom_field.name}:", 'L', 0)
heights << pdf.get_string_height(35, "#{value.custom_field.name}:")
pdf.SetFontStyle('',9)
heights << pdf.get_string_height(155, show_value(value, false))
height = heights.max
pdf.SetFontStyle('B',9)
pdf.RDMMultiCell(35, height, "#{value.custom_field.name}:", border_first, '', 0, 0)
pdf.SetFontStyle('',9)
pdf.RDMCell(155, 5, show_value(value, false).to_s, 'R', 1)
pdf.RDMMultiCell(155, height, show_value(value, false), border_last, '', 0, 2)
pdf.set_x(base_x)
end
else
lr_values = []
(22-22/24)