fixed the header width adjustment on non full screen resize issue.