Added basic support for centred pop-up.