Ruby on rails 自动调整对虾栏高
我正在尝试在这些列下填充全宽信息。 使用此代码Ruby on rails 自动调整对虾栏高,ruby-on-rails,prawn,Ruby On Rails,Prawn,我正在尝试在这些列下填充全宽信息。 使用此代码 column_box([13.75, cursor], columns: 2, width: bounds.width, reflow_margins: true) do items.each do |item| if item_total.items.present? item_table(item) move_down 7 end end end . . . table(another_table
column_box([13.75, cursor], columns: 2, width: bounds.width, reflow_margins: true) do
items.each do |item|
if item_total.items.present?
item_table(item)
move_down 7
end
end
end
.
.
.
table(another_table_data, width: bounds.width, column_widths: { column_widths },
header: true, position: 27.5, :cell_style => { inline_format: true, size: 13,
align: :center, border_width: 0.1,
border_color: '006c8b',
valign: :center })
我明白了:
如何自动调整柱高度以实现此目的
编辑:即使列的内容在页面结束之前结束,它也会使用页面的整个高度,如下所示: