Resize search box to not be out of the parent

Using the screen did not always work because there could be some places on the
screen that are not reachable by a window, for example a desktop toolbar.

review2061002