Fixed some bugs with the grid size when the edit controls are visible