You can buy this project and download/modify it how often you want.
return arguments[0].offsetHeight - arguments[0].clientHeight