Hide footer if the height is too small