Fix compute height using 'height' property

Thanks @metajack