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

the keyboard.
Please make up your mind on the word `ratio` or `width`. `width` is a number in `px` which we probably no longer need, and ratio is simply a multiple relative to the layout width.