title: Div css auto adjust height to content dynamically
body: <p>I have a div with auto height and adjustable textarea. I wanted the parent div to auto expand/collapse depending on the content.</p>
  
  <p>To recreate the problem in Chrome:</p>
  
  <ol>
  <li>Re-size the textbox downwards to increase the height of the parent div</li>
  <li>Re-size the textbox back to its inital position. You will see that the parent height does not retract.</li>
  </ol>
  
  <p>*Text area being draggable is just a representation for a select2 box.</p>
  
  <p>Here is a <a href="http://jsfiddle.net/wugwxc7u/" rel="nofollow">jsFiddle</a> of the below:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#parent {
    background-color: green;
    -webkit-column-count: 2;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="parent"&gt;
    &lt;div&gt;
   &lt;textarea&gt;&lt;/textarea&gt;
    &lt;/div&gt;
    &lt;div&gt;test&lt;/div&gt;
    &lt;div&gt;test&lt;/div&gt;
    &lt;div&gt;test&lt;/div&gt;
    &lt;div&gt;test&lt;/div&gt;
    &lt;div&gt;test&lt;/div&gt;
    &lt;div&gt;test&lt;/div&gt;
    &lt;div&gt;test&lt;/div&gt;
    &lt;div&gt;test&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How do I get the div to retract/collapse back to initial height after the text area is collapsed?</p>