title: JQuery CSS Height setting not working on Chrome/Safari
body: <p>We have a list of items that are presented on our site in table style. Depending on how many items appear on the list, the height of the table will change (number of items changes depending on the day of the week). To the left of this list table there is a vertical bar which should be resized to the appropriate height depending on how all the table is each day.</p>
  
  <p>This is the HTML we are using:</p>
  
  <pre><code>&lt;div class="tv_guide"&gt;
          &lt;div class="shows_bar_title"&gt;&lt;/div&gt;
          &lt;div class="tv_guide_contents"&gt;
              &lt;!--The contents are generated dynamically with a PHP loop--&gt;
              &lt;div class="guide_slot"&gt;
                 &lt;!-- one guide_slot per item --&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="clearFloat"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So basically we are using jQuery to check what the CSS height of .tv_guide_contents is and then using that value to set the height of .shows_bar_title.</p>
  
  <pre><code>var playlistHeight = $('.tv_guide_contents').css('height');
  $('.shows_bar_title').css('height', playlistHeight);
  </code></pre>
  
  <p>The problem is that in Chrome, playlistHeight has a value which is higher than what it really is. For example, if the height of tv_guide_contents is 1932px, the value of playlistHeight appears as 2012px and thus the title bar is higher. However, if I go to the Chrome console and type</p>
  
  <pre><code>$('.tv_guide_contents').css('height');
  </code></pre>
  
  <p>I do get 1932px. It also shows 1932 in the box model view.</p>
  
  <p>Why am I getting a higher value when I set the playlistHeight variable? This does not happen on Firefox, the title bar is resized correctly there.</p>
  
  <p>Thanks for your help.</p>