title: offset() is undefined 'error'
body: <p>While loading a page, I want to get the top of the panel. But it is showing errors.
  In Firefox and IE its saying "<strong>offset() is undefined</strong>" and in Chrome the error is "<strong>Uncaught TypeError: Cannot read property 'top' of undefined</strong>". Please Help out.</p>
  
  <pre><code>$(window).resize(function () {
      tabPanelAdjust();
  });
  
  function tabPanelAdjust() {
      var theTabPanel = $(".TabPanel");
      var tabPanelTop = parseInt(theTabPanel.offset().top);
      var winHeight = $(document).height();
      tabPanelHeight = winHeight - tabPanelTop;
      theTabPanel.css({ "min-height": tabPanelHeight - 20 });
  }
  
  &lt;div class="TabPanel"&gt;
  &lt;/div&gt;
  </code></pre>