calculate the height of the iframe canvas