Added pre calculate header height