Fix minimum and maximum height settings to match initial calculation of height constraint