function updateImageLocation()

in src/browser/SplashScreenProxy.js [36:51]


function updateImageLocation () {
    position.width = Math.min(splashImageWidth, window.innerWidth);
    position.height = position.width * (splashImageHeight / splashImageWidth);

    localSplash.style.width = window.innerWidth + 'px';
    localSplash.style.height = window.innerHeight + 'px';
    localSplash.style.top = '0px';
    localSplash.style.left = '0px';

    localSplashImage.style.top = '50%';
    localSplashImage.style.left = '50%';
    localSplashImage.style.height = position.height + 'px';
    localSplashImage.style.width = position.width + 'px';
    localSplashImage.style.marginTop = (-position.height / 2) + 'px';
    localSplashImage.style.marginLeft = (-position.width / 2) + 'px';
}