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

the keyboard.
`classList` -> `classNames` since `classList` is a name of the DOM interface.