diff --git a/frontend-js/src/main/js/minerva.js b/frontend-js/src/main/js/minerva.js index 7e236abf0308dfc068f28b194458e983e4eec864..0ad6bc044629b81ce8d91c39c42812a00cfe716f 100644 --- a/frontend-js/src/main/js/minerva.js +++ b/frontend-js/src/main/js/minerva.js @@ -290,9 +290,8 @@ function create(params) { } params.setServerConnector(ServerConnector); initGlobals(params); - params.getElement().style.display = "table"; - params.getElement().innerHTML = "<div style='vertical-align:middle;display:table-cell;text-align: center'>" - + "<img src='resources/images/icons/ajax-loader.gif'/>" + "</div>"; + params.getElement().innerHTML = "<div style='position:relative; width:100%;height:100%'>" + + "<img src='resources/images/icons/ajax-loader.gif' style='position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;'/>" + "</div>"; // make sure that we are logged in return ServerConnector.createSession().then(function () {