Fix issue where focusing the grid would cause a window scroll.