Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. What is the Dojo equivalent of jQuery's innerHeight()?
  2. $("selector").innerHeight();
  3.        
  4. dojo.contentBox() //get the height of content box
  5. dojo.style(node, "borderTopWidth") //get width of border-top
  6. dojo.style(node, "borderBottomWidth"). //get width of border-left
  7.        
  8. dojo.contentBox(node) // excludes border, padding and margin
  9. dojo.position(node)   // includes border and padding; excludes margin
  10. dojo.marginBox(node)  // includes border, padding and margin
  11.        
  12. <div id="outer" style="border: solid #000 1px;">
  13.   <div id="inner" style="height: 20px; padding: 2px;">.</div>
  14. </div>
  15. <script>
  16.   alert(dojo.position("inner").h) // 24
  17. </script>