Calculate topbar distance on window resize

If a element of the page is resized on window resize, distance must be recalculated when sticky is enabled