fixed bug where headingOffsets went out-of-sync on window resize