Don't truncate when the actual height fits
Using jquery utilities
Fixed wrong max height computation (loss of precision often led to max height underestimation)
Saving clamp from the aggressive Closure Compiler