Don't truncate when the actual height fits

Don't truncate when the actual height fits the required height.