fix header toolbar on resize