diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-08-28 10:23:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-08-28 10:23:46 +0000 |
commit | 4a9210d86fcb928b94c6f17eef622017548560ab (patch) | |
tree | 14286e5020bd85a43b5f94631acebdb915bce6c4 /lib/redmine/helpers | |
parent | f07a12659a0b816020a8035a4689f238a9665a8d (diff) | |
download | redmine-4a9210d86fcb928b94c6f17eef622017548560ab.tar.gz redmine-4a9210d86fcb928b94c6f17eef622017548560ab.zip |
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
Diffstat (limited to 'lib/redmine/helpers')
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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={}) |