# File lib/prawn/table.rb, line 161 def draw @parent_bounds = @document.bounds case C(:position) when :center x = (@document.bounds.width - width) / 2.0 dy = @document.bounds.absolute_top - @document.y @document.bounding_box [x, @parent_bounds.top], :width => width do @document.move_down(dy) generate_table end when Numeric x, y = C(:position), @document.y - @document.bounds.absolute_bottom @document.bounding_box([x,y], :width => width) { generate_table } else generate_table end end