added refreshOnResize attribute which makes the directive set an event listener for window resize, and update the scrollbar when it triggers