Just some improvements and adding a new function

Function to get height of an element with offset