fix for header bar not collapsing correctly on desktop