Class: Prawn::Document::ColumnBox
- Inherits:
-
BoundingBox
- Object
- BoundingBox
- Prawn::Document::ColumnBox
- Defined in:
- lib/bread/basket/poster/prawn_patches/column_box.rb
Instance Method Summary collapse
-
#move_past_bottom ⇒ Object
:nocov: Not testing this because I can’t figure out how to do it :( so be sure to look at samples to make sure column tops are correct.
Instance Method Details
#move_past_bottom ⇒ Object
:nocov: Not testing this because I can’t figure out how to do it :( so be sure to look at samples to make sure column tops are correct
7 8 9 10 11 12 13 |
# File 'lib/bread/basket/poster/prawn_patches/column_box.rb', line 7 def move_past_bottom @current_column = (@current_column + 1) % @columns column = ::Bread::Basket::Poster.layout.columns[@current_column] @document.y = column.top @document.start_new_page if @current_column == 0 @y = @parent.absolute_top if @reflow_margins && (@current_column == 0) end |