fix refresh of scrollspy on size changes