From 4a9210d86fcb928b94c6f17eef622017548560ab Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 28 Aug 2014 10:23:46 +0000 Subject: use rbpdf gem instead of bundled rfpdf (#17570) Contributed by Jun NAITOH. git-svn-id: http://svn.redmine.org/redmine/trunk@13358 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/redmine/helpers') diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 4568421f1..6b054bb6d 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -856,6 +856,9 @@ module Redmine end def pdf_task(params, coords, options={}) + cell_height_ratio = params[:pdf].get_cell_height_ratio() + params[:pdf].set_cell_height_ratio(0.1) + height = options[:height] || 2 # Renders the task bar, with progress and late if coords[:bar_start] && coords[:bar_end] @@ -896,6 +899,8 @@ module Redmine params[:pdf].SetX(params[:subject_width] + (coords[:bar_end] || 0) + 5) params[:pdf].RDMCell(30, 2, options[:label]) end + + params[:pdf].set_cell_height_ratio(cell_height_ratio) end def image_task(params, coords, options={}) -- cgit v1.2.3