Bug 1105178 - Separate resize out to LayoutPageView.
 - Use flex box to layout the keyboard.
Merge pull request #26781 from RudyLu/keyboard/Bug1105178-move_resize_out_2

Bug 1105178 - Separate resize out to LayoutPageView.  - Use flex box to layout..
r=timdream.