Fix subgrid size calculation problem when zoom button is pressed.

Subgrid size calculation fix for zoom button event.