Hide the box shadow when hiding the header bar.
Close #772.