Adjusted viewport and container dimension match