mod_base: Vertically center the z_dialog when it is opened

(cherry picked from commit 093e2ba3fd1a51d2513965132fd47f3b559fad36)