Calculate topbar distance on window resize

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