mirror of https://github.com/portainer/portainer
EE-1892 Centralize prompt dialog (#6903)
parent
dc98850489
commit
ca30efeca7
|
@ -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',
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue