Calculating the view size for correct visibility and proportions.