From d8644648a496b9b305d94f00f64c027f94c8b389 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Sat, 16 Mar 2019 10:26:05 +0000 Subject: [PATCH] Fit the logo to the Main Display Fixes: https://launchpad.net/bugs/1819763 --- openlp/core/display/html/display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/display/html/display.js b/openlp/core/display/html/display.js index 9c6eda634..02980a393 100644 --- a/openlp/core/display/html/display.js +++ b/openlp/core/display/html/display.js @@ -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;