Center modal at all times

Fixes #14892.
Depends upon #14927.

/cc @cvrebert @fat