Resize the screen when the osk/toolbar is expanded.

This patch resize the screen when the osk, or the toolbar is expanded.
Fixes #2487