Fix rendering bug when a grid has a horizontal scrollbar but no vertical scrollbar.