Calculate the cell width and height separately since IE may not keep the canvas proportions on window resize.