Calculate the keyboard size and diff base on the scrollviews position in the window