From 58d205a0228cc06e630f301671bd7f65e9fa8bcc Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 18 May 2022 14:37:02 +0200 Subject: [PATCH] fix(dossier_vide.pdf.prawn): avoid overlap on for multiline label on label --- app/views/dossiers/dossier_vide.pdf.prawn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/dossiers/dossier_vide.pdf.prawn b/app/views/dossiers/dossier_vide.pdf.prawn index df260945d..cd2add4a1 100644 --- a/app/views/dossiers/dossier_vide.pdf.prawn +++ b/app/views/dossiers/dossier_vide.pdf.prawn @@ -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