fix #4045: list footer takes space when hidden