Adjust resizing for scrollbars on Chrome, for issue #1015