The code snippet also seems to fail to account properly. It doesn't return a proper height.