Fixed subgrid size calculation bug when zoom button is pressed.