Make vertical centering work on more devices.