Updating the way of calculate the data-height attribute.