forked from openlp/openlp
Fit the logo to the Main Display
Fixes: https://launchpad.net/bugs/1819763
This commit is contained in:
parent
296adb59a0
commit
d8644648a4
@ -315,7 +315,7 @@ var Display = {
|
|||||||
section.setAttribute("style", "height: 100%; width: 100%; position: relative;");
|
section.setAttribute("style", "height: 100%; width: 100%; position: relative;");
|
||||||
var img = document.createElement('img');
|
var img = document.createElement('img');
|
||||||
img.src = image;
|
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);
|
section.appendChild(img);
|
||||||
slidesDiv.appendChild(section);
|
slidesDiv.appendChild(section);
|
||||||
Display._slides['0'] = 0;
|
Display._slides['0'] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user