Fit the logo to the Main Display

Fixes: https://launchpad.net/bugs/1819763
This commit is contained in:
Philip Ridout 2019-03-16 10:26:05 +00:00
parent 296adb59a0
commit d8644648a4
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ var Display = {
section.setAttribute("style", "height: 100%; width: 100%; position: relative;");
var img = document.createElement('img');
img.src = image;
img.setAttribute("style", "position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto;");
img.setAttribute("style", "position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; max-height: 100%; max-width: 100%");
section.appendChild(img);
slidesDiv.appendChild(section);
Display._slides['0'] = 0;