title: Prawn grid layout: Dynamic content colliding with subsequent rows
body: <p>I want to specify columns at various points in a pdf document. </p>
  
  <p>Example: three columns for this section, one column for that section, two columns for this other section. </p>
  
  <p>I don't want rows to be tied to a physical location on a pdf document because I have dynamic text with various lengths, so I cannot predict how much content is within a certain area.  What happens is that if there is too much text for a <code>[column, row]</code> box it simply overflows to the subsequent row, colliding with text there.</p>
  
  <p>It appears that the layout grid in prawn forces me to specify the number of rows.<br>
  It would be nice if I could dynamically define rows like with bootstrap.  That way content in a row does not start until the previous row takes up all the space it needs.  </p>
  
  <p>Here is how I understand you must define a layout grid in Prawn:</p>
  
  <pre><code>    pdf.define_grid(columns: 12, rows: 12, gutter: 10)
  </code></pre>
  
  <p>So say I do something like this:</p>
  
  <pre><code>pdf.grid([0,0]).bounding_box do
    pdf.text "Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Maecenas faucibus mollis interdum."
  end
  
  pdf.grid([1,0]).bounding_box do
    pdf.text "some text"
  end
  </code></pre>
  
  <p>Clearly the text in the <code>[0,0]</code> bounding box is going to collide with the text in the <code>[1,0]</code> bounding box because there is too much content in <code>[0,0]</code>, so it overflows into rows below it.</p>
  
  <p>Because bootstrap is not stuck to a physical columns/rows layout grid, Bootstrap allows the content in <code>[0,0]</code> to take up as much space as needed and then begins <code>[1,0]</code> content afterwards.  </p>
  
  <p>The issue is that prawn's layout grid appears to apply directly to the physical location of a pdf document, but I don't want it to do that.</p>
  
  <p>Hopefully that makes sense. Is something like this possible in Prawn?  Otherwise I foresee myself having to forgo columns altogether for my pdfs, which would render a ton of empty space. </p>
  
  <p><a href="http://prawnpdf.org/manual.pdf" rel="nofollow">Prawn PDF manual</a>, layout info on page 74</p>