Add proper handling for vertical scrolling and support for grid.scrollToRow()