From ae166ab0660578706ca96ded3b12730d1cc90c7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Mon, 28 Sep 2015 22:04:39 +0200 Subject: [PATCH] Make the print preview only fire when the presentation is finished rendering. --- simpleWebSlides.js | 3 ++- themes/uPsud.css | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/simpleWebSlides.js b/simpleWebSlides.js index a0e0ef8..1c39da4 100644 --- a/simpleWebSlides.js +++ b/simpleWebSlides.js @@ -519,7 +519,8 @@ SWS.Presentation = new function () { progress.remove(); window.status = 'Ready'; $.fx.off = old_fx_status; - if (SWS.Utils.getParameterByName("dialog") != "off") window.print(); + if (SWS.Utils.getParameterByName("dialog") != "off") + $("body").ready( function () { window.print(); }); } }; loop(); diff --git a/themes/uPsud.css b/themes/uPsud.css index f08cea5..ea22813 100644 --- a/themes/uPsud.css +++ b/themes/uPsud.css @@ -58,6 +58,7 @@ h1 { z-index:0; } + .sws-inner-canvas { height: 88%; z-index: 2; @@ -68,7 +69,7 @@ h1 { /* Title of the slide */ .sws-title { height: 7%; - z-index:2; + z-index: 2; } @@ -78,7 +79,7 @@ h1 { text-align:right; padding-right:1ex; vertical-align: middle; - z-index: 2; + z-index: 1; } .sws-footer::before { @@ -92,10 +93,9 @@ h1 { background-size: contain; background-image: url("logo_psud_psay.png"); background-repeat: no-repeat; - z-index: 1; + z-index: -1 ; } - .sws-slide-num-sep:after { content: "/"; } -- 2.17.1