head and foot height compute

ignored when it's hidden