From ca30efeca73ce5ac65fd5c63b95b20f1ac677291 Mon Sep 17 00:00:00 2001 From: Chao Geng <93526589+chaogeng77977@users.noreply.github.com> Date: Tue, 24 May 2022 20:14:38 +0800 Subject: [PATCH] EE-1892 Centralize prompt dialog (#6903) --- app/portainer/services/modal.service/utils.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/portainer/services/modal.service/utils.ts b/app/portainer/services/modal.service/utils.ts index 043818a13..2f6e72357 100644 --- a/app/portainer/services/modal.service/utils.ts +++ b/app/portainer/services/modal.service/utils.ts @@ -28,10 +28,6 @@ export function confirmButtons(options: ButtonsOptions) { export function applyBoxCSS(box: JQuery) { box.css({ - top: '50%', - 'margin-top': function marginTop() { - const height = box.height() || 0; - return -(height / 2); - }, + 'vertical-align': 'middle', }); }