handle sticky header when resizing gracefully