Fix issue where vertical scrolling would occur.