EE-1892 Centralize prompt dialog (#6903)

This commit is contained in:
Chao Geng
2022-05-24 20:14:38 +08:00
committed by GitHub
parent dc98850489
commit ca30efeca7

View File

@@ -28,10 +28,6 @@ export function confirmButtons(options: ButtonsOptions) {
export function applyBoxCSS(box: JQuery<HTMLElement>) {
box.css({
top: '50%',
'margin-top': function marginTop() {
const height = box.height() || 0;
return -(height / 2);
},
'vertical-align': 'middle',
});
}