From ac087f0e90cd08e7a3a89fc0236f16e68acdaae8 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 30 Jul 2016 21:07:48 +0800 Subject: Update workaround for slide, need to trigger it in other thread via setTimeout --- public/js/slide.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public') diff --git a/public/js/slide.js b/public/js/slide.js index 4c2f1ff9..074e4df9 100644 --- a/public/js/slide.js +++ b/public/js/slide.js @@ -62,6 +62,10 @@ function renderSlide(event) { markdown.attr('data-rendered', 'true'); document.title = title; Reveal.layout(); + // force browser redraw + setTimeout(function () { + markdown.hide().show(0); + }, 0); } } -- cgit v1.2.3