#654 Fix a visual issue when resizing the browser window