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

When the window is resized (or orientation of the screen is changed), the content-flow may completly change the heading offsets. These should be recalculated then.