Function to determine the size after resize.