Skip to main content

.noPaddingHeight()

.noPaddingHeight(Boolean margin = false): int

Returns the height of the first matching element with/without margins and borders, but including padding.

console.log( 'Height without padding and margin: ', $( "div" ).noPaddingHeight() );
console.log( 'Height without padding, including margin ', $( "div" ).noPaddingHeight(true) );