Update workaround for slide, need to trigger it in other thread via setTimeout

This commit is contained in:
Wu Cheng-Han 2016-07-30 21:07:48 +08:00
parent d85dd19816
commit ac087f0e90

View file

@ -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);
}
}