Correctly position messages when page is scrolled