title: iScroll getting height of parent Div
body: <p>I am using iScroll in a project and got a starnge behaviour where iScroll is getting the height from the parent div and I would like it to use the height of the div I pass into it.</p>
  
  <p>I managed to reproduce this in a jsFiddle: <a href="http://jsfiddle.net/wjtbxpmc/" rel="nofollow">http://jsfiddle.net/wjtbxpmc/</a></p>
  
  <p>The code is basically:</p>
  
  <pre class="lang-js prettyprint-override"><code>function findClosest(el, selector) { // this is just to find closest parent by class
      var isClass = selector.indexOf('.') == 0;
      if (isClass) while ((el = el.parentElement) &amp;&amp; !el.classList.contains(selector.slice(1)));
      else while ((el = el.parentElement) &amp;&amp; el.tagName.toLowerCase() != selector);
      return el;
  }
  
  var table = document.querySelector('table');
  for (var i = 0; i &lt; 50; i++) {
      var tr = document.createElement('tr');
      var td = document.createElement('td');
      td.innerHTML = 'Line ' + i;
      tr.appendChild(td);
      table.appendChild(tr);
  
  }
  
  var scrollDiv = findClosest(table, '.scrollable');
  new IScroll(scrollDiv, {
      mouseWheel: true,
      scrollbars: true,
      click: true
  });
  </code></pre>
  
  <pre class="lang-css prettyprint-override"><code>#wrapper {
      height: 80vmin;
  }
  .scrollable {
      height: 63vmin;
      margin-bottom: 3vmin;
      overflow: hidden;
  }
  div {
      padding: 2vmin;
      border: 1px solid #ccf;
  }
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script src="http://lab.cubiq.org/iscroll5/build/iscroll.js"&gt;&lt;/script&gt;
      &lt;div id="wrapper"&gt;
          &lt;div class="scrollable"&gt;
              &lt;table&gt;&lt;/table&gt;
          &lt;/div&gt;
          &lt;div&gt;Srcoll bar should be above this div...&lt;/div&gt;
      &lt;/div&gt;
  </code></pre>