We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 515f2db commit 944311bCopy full SHA for 944311b
lib/prawn/table/cell/text.rb
@@ -66,7 +66,14 @@ def natural_content_height
66
#
67
def draw_content
68
with_font do
69
- @pdf.move_down((@pdf.font.line_gap + @pdf.font.descender)/2)
+ case @text_options[:valign]
70
+ when :top
71
+ @pdf.move_up((@pdf.font.line_gap + @pdf.font.descender)/2)
72
+ when :center
73
+ # No move
74
+ when :bottom
75
+ @pdf.move_down((@pdf.font.line_gap + @pdf.font.descender))
76
+ end
77
with_text_color do
78
text_box(:width => spanned_content_width + FPTolerance,
79
:height => spanned_content_height + FPTolerance,
0 commit comments