Move height adjustment code from 'getRect' to 'keyboardWillShow'