Adopted better approach for adjusting contentInset