title: what is the jQuery outerHeight() equivalent in YUI
body: <p>In jQuery, I can very easily get the current computed height for an element that includes padding, border, and optionally margin by using <a href="http://api.jquery.com/outerHeight/" rel="nofollow noreferrer">outerHeight()</a>...</p>
  
  <pre><code>// returns height of element + border + padding + margin
  $('.my-element').outerHeight(true);
  </code></pre>
  
  <p>How would I do this in YUI? I'm currently using <strong>version 2.8.1</strong>.</p>
  
  <p>Similar to <a href="https://stackoverflow.com/questions/4136616/yui-get-true-element-width">this question</a>, I can always do <a href="http://yuilibrary.com/yui/docs/api/classes/Node.html#method_getComputedStyle" rel="nofollow noreferrer">getComputedStyle()</a> for height, border, padding, and margin, but that is a lot of manual labor which includes parsing the return values and grabbing the correct values that are needed and doing the math myself.</p>
  
  <p>Isn't there some equivalent function to jQuery's <code>outerHeight()</code> in YUI that does all of this for me?</p>
  
  <h2>Solution</h2>
  
  <p>I ended up writing my own solution since I couldn't find a jQuery <code>outerheight()</code> equivalent. I've posted the solution as <a href="https://stackoverflow.com/a/12753203/196921">an answer here</a>.</p>