summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2016-07-30 21:07:48 +0800
committerWu Cheng-Han2016-07-30 21:07:48 +0800
commitac087f0e90cd08e7a3a89fc0236f16e68acdaae8 (patch)
tree8d94093a712c295033fa5d95186c824a840976a8
parentd85dd19816df7ec74eb3e4dd31b3c4d63c6119aa (diff)
Update workaround for slide, need to trigger it in other thread via setTimeout
-rw-r--r--public/js/slide.js4
1 files changed, 4 insertions, 0 deletions
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);
}
}