fix iOS8 keyboard frame and cceditbox problem with basing calculations on portrait orientation