Fix contentInset/offset for view at the top

Set contentInset to correctly place the view a small padding form the
top and contentOffset to have the keyboard’s height as padding at the
bottom.