Merge pull request #7349 from betagouv/fix/dossier_vide.pdf

fix(dossier_vide.pdf.prawn): avoid overlap on for multiline label on label
This commit is contained in:
mfo 2022-05-18 15:17:27 +02:00 committed by GitHub
commit e976336612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ def format_with_checkbox(pdf, option, offset = 0)
pdf.font 'marianne', size: 9 do
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
pdf.bounding_box([110, pdf.cursor + 3],:width => 350,:height => 20) do