fix(dossier_vide.pdf.prawn): avoid overlap on for multiline label on label

This commit is contained in:
Martin 2022-05-18 14:37:02 +02:00 committed by mfo
parent 86eec7b315
commit 58d205a022

View file

@ -48,7 +48,7 @@ def format_with_checkbox(pdf, option, offset = 0)
pdf.font 'marianne', size: 9 do pdf.font 'marianne', size: 9 do
pdf.stroke_rectangle [0 + offset, pdf.cursor], 10, 10 pdf.stroke_rectangle [0 + offset, pdf.cursor], 10, 10
pdf.text_box label, at: [15 + offset, pdf.cursor - 1] render_expanding_text_box(pdf, label, at: [15, pdf.cursor])
if value == Champs::DropDownListChamp::OTHER if value == Champs::DropDownListChamp::OTHER
pdf.bounding_box([110, pdf.cursor + 3],:width => 350,:height => 20) do pdf.bounding_box([110, pdf.cursor + 3],:width => 350,:height => 20) do