Permalink
Browse files

Set initial x coordinate for header cells

  • Loading branch information...
1 parent baa6e80 commit 32fdbe93afae30b034794d12678998e551207a2a Ivan Tse committed Jul 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/prawn/table.rb
View
@@ -491,7 +491,7 @@ def make_cells(data)
def add_header(page_of_cells, y, row)
@header_row.each do |cell|
cell.row = row
- page_of_cells << [cell, [cell.x, y]]
+ page_of_cells << [cell, [cell.x + @pdf.bounds.left_side - @pdf.bounds.absolute_left, y]]
end
@header_row.height
end

0 comments on commit 32fdbe9

Please sign in to comment.