You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
column_box doesn't flow between columns when displaying tables instead of text #7
describe "A table, in a column box" do
it "should flow to the next column rather than always the next page" do
pdf = Prawn::Document.new do
column_box [0, cursor], :width => bounds.width, :columns => 2 do
# 35 rows fit on two columns but not one
table [["data"]] * 35
end
end
pdf.page_count.should == 1
end
end
Two issues to fix here:
Change @document.start_new_page to @parent_bounds.move_past_bottom so that we just tell the ColumnBox to move to the next column.
CellBlock currently draws based on the absolute_left of the page's (outermost) bounds. It should rather draw based on the left_side of the innermost bounds (those enclosing the table), but it has no knowledge of those bounds, only @document. Refactor CellBlock so that it knows the bounds it is drawing into.
Activity
practicingruby commentedon May 11, 2009
Note to self: See if this reduces to the problem of using tables in stretchy bounding boxes...
bradediger commentedon Nov 9, 2009
Deferred for 0.7. Here's a failing spec:
Two issues to fix here:
rnhurt commentedon Jan 7, 2010
Did this ever get any love? I'm running 0.7.1 right now and it still looks broken.
bradediger commentedon Jan 11, 2010
Make tables work in column boxes. Closed by 53e381d.