Remove bottom border when footer is hidden.

Hi, I just feel the bottom border should be removed when footer is hidden. I didn't test it but it should work as expected. Thanks.